about summary refs log tree commit diff
path: root/src/librustc_driver
diff options
context:
space:
mode:
authorEduard-Mihai Burtescu <edy.burt@gmail.com>2017-04-15 04:14:44 +0300
committerEduard-Mihai Burtescu <edy.burt@gmail.com>2017-04-16 01:31:37 +0300
commit6dc21b71cfd8e5246e7953cf64ea5ee6a19ceb3d (patch)
treec1719d4b3991f2b9ee3033596f8557a1d554d223 /src/librustc_driver
parent63064ec190fef7947c3eabfcdfeaeb293c9a91dd (diff)
downloadrust-6dc21b71cfd8e5246e7953cf64ea5ee6a19ceb3d.tar.gz
rust-6dc21b71cfd8e5246e7953cf64ea5ee6a19ceb3d.zip
rustc: use monomorphic const_eval for cross-crate enum discriminants.
Diffstat (limited to 'src/librustc_driver')
-rw-r--r--src/librustc_driver/driver.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/librustc_driver/driver.rs b/src/librustc_driver/driver.rs
index c856ea505ff..7632b40ab4f 100644
--- a/src/librustc_driver/driver.rs
+++ b/src/librustc_driver/driver.rs
@@ -900,6 +900,8 @@ pub fn phase_3_run_analysis_passes<'tcx, F, R>(sess: &'tcx Session,
     let mut extern_providers = ty::maps::Providers::default();
     cstore::provide(&mut extern_providers);
     ty::provide_extern(&mut extern_providers);
+    // FIXME(eddyb) get rid of this once we replace const_eval with miri.
+    rustc_const_eval::provide(&mut extern_providers);
 
     TyCtxt::create_and_enter(sess,
                              local_providers,