rustc: Make core injection a timed pass

It's not much of a pass, but lets be consistent
This commit is contained in:
Brian Anderson 2012-01-26 15:21:16 -08:00
parent 5610205363
commit 2220d0f20f

View file

@ -127,7 +127,9 @@ fn compile_upto(sess: session, cfg: ast::crate_cfg,
if upto == cu_expand { ret {crate: crate, tcx: none}; }
crate = front::core_inject::maybe_inject_libcore_ref(sess, crate);
crate =
time(time_passes, "core injection",
bind front::core_inject::maybe_inject_libcore_ref(sess, crate));
let ast_map =
time(time_passes, "ast indexing",