]> git.lizzy.rs Git - rust.git/commit
Auto merge of #30087 - petrochenkov:indi, r=nrc
authorbors <bors@rust-lang.org>
Mon, 7 Dec 2015 22:28:45 +0000 (22:28 +0000)
committerbors <bors@rust-lang.org>
Mon, 7 Dec 2015 22:28:45 +0000 (22:28 +0000)
commitacf4e0be22203213a5e42469deea4dc6e49da840
tree8c9572b0e1f72529d41e5163c6b124328b971140
parent8864f2c83ac800881da34c3e835c931c081a8785
parentca88e9c536457172cded98701d51ffafd1feb333
Auto merge of #30087 - petrochenkov:indi, r=nrc

I've measured the time/memory consumption before and after - the difference is lost in statistical noise, so it's mostly a code simplification.
Sizes of `enum`s are not affected.

r? @nrc

I wonder if AST/HIR visitors could run faster if `P`s are systematically removed (except for cases where they control `enum` sizes). Theoretically they should.
Remaining unnecessary `P`s can't be easily removed because many folders accept `P<X>`s as arguments, but these folders can be converted to accept `X`s instead without loss of efficiency.
When I have a mood for some mindless refactoring again, I'll probably try to convert the folders, remove remaining `P`s and measure again.
src/librustc/middle/const_eval.rs
src/librustc/middle/infer/error_reporting.rs
src/librustc/middle/region.rs
src/librustc_trans/trans/base.rs
src/librustc_typeck/check/mod.rs