diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-04-04 15:02:25 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-04-04 15:03:39 -0700 |
| commit | 38ed2ea0968db8dbcebb1d1c650b8693ffb8a1dd (patch) | |
| tree | ad47b45f5b7a8a86bcf698a398f601994c3d0876 /src/rustc/driver | |
| parent | 1ad62def6a550e2ac015bdf34bcf25b7a7b4b92c (diff) | |
| download | rust-38ed2ea0968db8dbcebb1d1c650b8693ffb8a1dd.tar.gz rust-38ed2ea0968db8dbcebb1d1c650b8693ffb8a1dd.zip | |
rustc: Allow consts to refer to other consts
Diffstat (limited to 'src/rustc/driver')
| -rw-r--r-- | src/rustc/driver/driver.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rustc/driver/driver.rs b/src/rustc/driver/driver.rs index cde545abfca..1b0b4a52b40 100644 --- a/src/rustc/driver/driver.rs +++ b/src/rustc/driver/driver.rs @@ -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)}; } |
