diff options
| author | Marijn Haverbeke <[email protected]> | 2011-05-13 10:51:36 +0200 |
|---|---|---|
| committer | Marijn Haverbeke <[email protected]> | 2011-05-13 11:35:25 +0200 |
| commit | 89490e416b9eff7d22cbea235475db1cba581ff6 (patch) | |
| tree | 271149e2c20567f18effdf0da54358297a45e5f7 /src/comp/driver | |
| parent | Ensure visit_ty is called on type parameters during walk (diff) | |
| download | rust-89490e416b9eff7d22cbea235475db1cba581ff6.tar.xz rust-89490e416b9eff7d22cbea235475db1cba581ff6.zip | |
Change resolve to use walk instead of fold
Possibly, at some point, we should add a state-passing variant of
walk, or a wrapper that makes it easier to thread state. (See the
repetetive pop_state_for_* functions in this commit.)
Diffstat (limited to 'src/comp/driver')
| -rw-r--r-- | src/comp/driver/rustc.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/comp/driver/rustc.rs b/src/comp/driver/rustc.rs index 5d5ba1d5..ad89ac9c 100644 --- a/src/comp/driver/rustc.rs +++ b/src/comp/driver/rustc.rs @@ -92,10 +92,8 @@ fn compile_input(session::session sess, crate = time(time_passes, "external crate reading", bind creader::read_crates(sess, crate)); - auto res = time(time_passes, "resolution", - bind resolve::resolve_crate(sess, crate)); - crate = res._0; - auto def_map = res._1; + auto def_map = time(time_passes, "resolution", + bind resolve::resolve_crate(sess, crate)); time[()](time_passes, "capture checking", bind capture::check_for_captures(sess, crate, def_map)); |