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.)
This commit is contained in:
parent
7082bf4478
commit
89490e416b
2 changed files with 167 additions and 107 deletions
|
|
@ -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));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue