rustc: Allow consts to refer to other consts

This commit is contained in:
Brian Anderson 2012-04-04 15:02:25 -07:00
parent 1ad62def6a
commit 38ed2ea096
4 changed files with 50 additions and 6 deletions

View file

@ -149,8 +149,8 @@ fn compile_upto(sess: session, cfg: ast::crate_cfg,
time(time_passes, "typechecking",
bind typeck::check_crate(ty_cx, impl_map, crate));
time(time_passes, "const checking",
bind middle::check_const::check_crate(sess, crate, method_map,
ty_cx));
bind middle::check_const::check_crate(sess, crate, def_map,
method_map, ty_cx));
if upto == cu_typeck { ret {crate: crate, tcx: some(ty_cx)}; }