]> git.lizzy.rs Git - rust.git/commit
rollup merge of #21127: erickt/opt-stack
authorAlex Crichton <alex@alexcrichton.com>
Thu, 15 Jan 2015 22:11:53 +0000 (14:11 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Thu, 15 Jan 2015 22:11:53 +0000 (14:11 -0800)
commitb1a7e34fc0b5e27891eec8920b063b9453d6a14f
tree07c1bb630e69286dc97c6abc026e0110195f2218
parent4c4092d73695fd162522e6b481d17a0b37b40e64
parente14d053a509c31c6859ce630427c9053cb1bb261
rollup merge of #21127: erickt/opt-stack

libsyntax compiled without optimization uses a lot of stack, which can cause it to run out of stack space. This PR factors out some arm handlers from `print_expr` as well as converts `advance_left` into a loop. This helps to cut down on the stack usage.
src/libsyntax/print/pprust.rs