]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #9453 : pnkfelix/rust/fsk-further-syntax-visit-refactors, r=alexcrichton
authorbors <bors@rust-lang.org>
Tue, 24 Sep 2013 09:26:06 +0000 (02:26 -0700)
committerbors <bors@rust-lang.org>
Tue, 24 Sep 2013 09:26:06 +0000 (02:26 -0700)
r? anyone.

Part of #7081.

More refactorings of the syntax::visit::Visitor implementations, folding so-called "environments" into the visitor impl when the latter was previously a trivial unit struct.

As usual, this refactoring only applies when the environments are not actually carrying state that is meant to be pushed and popped as we traverse the expression.  (For an example where the environment *isn't* just passed through, see the `visit_fn` in `liveness.rs`.)

Got rid of a bit of @-allocation in borrowck.

Both cases should be pure-refactorings.

1  2 
src/librustc/middle/lint.rs

Simple merge