diff options
| author | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2017-04-14 19:00:08 +0300 |
|---|---|---|
| committer | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2017-04-16 01:31:06 +0300 |
| commit | 63064ec190fef7947c3eabfcdfeaeb293c9a91dd (patch) | |
| tree | 72c3b485ac4bd11130bff681332e836f5633ae1c /src/librustc_driver | |
| parent | 8854164d0cda3c90f6c3c774d8acf891599e4da3 (diff) | |
| download | rust-63064ec190fef7947c3eabfcdfeaeb293c9a91dd.tar.gz rust-63064ec190fef7947c3eabfcdfeaeb293c9a91dd.zip | |
rustc: expose monomorphic const_eval through on-demand.
Diffstat (limited to 'src/librustc_driver')
| -rw-r--r-- | src/librustc_driver/driver.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/librustc_driver/driver.rs b/src/librustc_driver/driver.rs index 48d9719e76c..c856ea505ff 100644 --- a/src/librustc_driver/driver.rs +++ b/src/librustc_driver/driver.rs @@ -37,7 +37,7 @@ use rustc_plugin::registry::Registry; use rustc_plugin as plugin; use rustc_passes::{ast_validation, no_asm, loops, consts, static_recursion, hir_stats, mir_stats}; -use rustc_const_eval::check_match; +use rustc_const_eval::{self, check_match}; use super::Compilation; use serialize::json; @@ -895,6 +895,7 @@ pub fn phase_3_run_analysis_passes<'tcx, F, R>(sess: &'tcx Session, typeck::provide(&mut local_providers); ty::provide(&mut local_providers); reachable::provide(&mut local_providers); + rustc_const_eval::provide(&mut local_providers); let mut extern_providers = ty::maps::Providers::default(); cstore::provide(&mut extern_providers); |
