diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2021-01-01 01:53:25 +0100 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2021-09-07 00:43:14 +0200 |
| commit | bba4be681d664a50ab307ec732f957c02255e067 (patch) | |
| tree | d56899ff2ba1bcf004901eac1e155b2656a5e4fd /compiler/rustc_interface/src | |
| parent | 31a61ccc38201a13c2549b20772daf15ce0e0309 (diff) | |
| download | rust-bba4be681d664a50ab307ec732f957c02255e067.tar.gz rust-bba4be681d664a50ab307ec732f957c02255e067.zip | |
Move rustc_mir::transform to rustc_mir_transform.
Diffstat (limited to 'compiler/rustc_interface/src')
| -rw-r--r-- | compiler/rustc_interface/src/passes.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/rustc_interface/src/passes.rs b/compiler/rustc_interface/src/passes.rs index df03ff59f46..7d41db0d4ae 100644 --- a/compiler/rustc_interface/src/passes.rs +++ b/compiler/rustc_interface/src/passes.rs @@ -742,6 +742,7 @@ pub static DEFAULT_QUERY_PROVIDERS: SyncLazy<Providers> = SyncLazy::new(|| { mir::provide(providers); mir_borrowck::provide(providers); mir_build::provide(providers); + rustc_mir_transform::provide(providers); rustc_privacy::provide(providers); typeck::provide(providers); ty::provide(providers); @@ -913,7 +914,7 @@ fn analysis(tcx: TyCtxt<'_>, (): ()) -> Result<()> { for def_id in tcx.body_owners() { tcx.ensure().thir_check_unsafety(def_id); if !tcx.sess.opts.debugging_opts.thir_unsafeck { - mir::transform::check_unsafety::check_unsafety(tcx, def_id); + rustc_mir_transform::check_unsafety::check_unsafety(tcx, def_id); } if tcx.hir().body_const_context(def_id).is_some() { @@ -1061,7 +1062,7 @@ pub fn start_codegen<'tcx>( info!("Post-codegen\n{:?}", tcx.debug_stats()); if tcx.sess.opts.output_types.contains_key(&OutputType::Mir) { - if let Err(e) = mir::transform::dump_mir::emit_mir(tcx, outputs) { + if let Err(e) = rustc_mir_transform::dump_mir::emit_mir(tcx, outputs) { tcx.sess.err(&format!("could not emit MIR: {}", e)); tcx.sess.abort_if_errors(); } |
