diff options
| author | Marijn Haverbeke <marijnh@gmail.com> | 2012-03-14 18:04:03 +0100 |
|---|---|---|
| committer | Marijn Haverbeke <marijnh@gmail.com> | 2012-03-14 18:05:28 +0100 |
| commit | de79caa97ebfb86adaaae1c54237a94a610f94c0 (patch) | |
| tree | e434939aacae6c1777d971d125be161cca1ea00a /src/rustc/driver | |
| parent | c988800cf5611130e468761caa4d2f5adbdc6781 (diff) | |
| download | rust-de79caa97ebfb86adaaae1c54237a94a610f94c0.tar.gz rust-de79caa97ebfb86adaaae1c54237a94a610f94c0.zip | |
Add crude support for casts in constant expressions
Only casts to integral and float types are supported Closes #1975
Diffstat (limited to 'src/rustc/driver')
| -rw-r--r-- | src/rustc/driver/driver.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rustc/driver/driver.rs b/src/rustc/driver/driver.rs index 71f39a77e36..eb4f74105f2 100644 --- a/src/rustc/driver/driver.rs +++ b/src/rustc/driver/driver.rs @@ -148,7 +148,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)); + bind middle::check_const::check_crate(sess, crate, method_map, + ty_cx)); if upto == cu_typeck { ret {crate: crate, tcx: some(ty_cx)}; } |
