rustc: Allow consts to refer to other consts
This commit is contained in:
parent
1ad62def6a
commit
38ed2ea096
4 changed files with 50 additions and 6 deletions
|
|
@ -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)}; }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue