about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2023-09-29 22:38:52 +0200
committerRalf Jung <post@ralfj.de>2023-09-30 07:38:08 +0200
commitacb7c21507f4c6f7247e702287ab4caf64b31235 (patch)
tree929dfd35f9ca838fc4fd3f29fae4fea731482d3b /compiler/rustc_codegen_ssa/src
parent56ada88e7e1f00e6c6e8a0957de295bc0e2d64f7 (diff)
downloadrust-acb7c21507f4c6f7247e702287ab4caf64b31235.tar.gz
rust-acb7c21507f4c6f7247e702287ab4caf64b31235.zip
dont call mir.post_mono_checks in codegen
Diffstat (limited to 'compiler/rustc_codegen_ssa/src')
-rw-r--r--compiler/rustc_codegen_ssa/src/mir/mod.rs11
1 files changed, 0 insertions, 11 deletions
diff --git a/compiler/rustc_codegen_ssa/src/mir/mod.rs b/compiler/rustc_codegen_ssa/src/mir/mod.rs
index a61018f9870..06cdc47610d 100644
--- a/compiler/rustc_codegen_ssa/src/mir/mod.rs
+++ b/compiler/rustc_codegen_ssa/src/mir/mod.rs
@@ -211,17 +211,6 @@ pub fn codegen_mir<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>>(
 
     fx.per_local_var_debug_info = fx.compute_per_local_var_debug_info(&mut start_bx);
 
-    // Rust post-monomorphization checks; we later rely on them.
-    if let Err(err) =
-        mir.post_mono_checks(cx.tcx(), ty::ParamEnv::reveal_all(), |c| Ok(fx.monomorphize(c)))
-    {
-        err.emit_err(cx.tcx());
-        // This IR shouldn't ever be emitted, but let's try to guard against any of this code
-        // ever running.
-        start_bx.abort();
-        return;
-    }
-
     let memory_locals = analyze::non_ssa_locals(&fx);
 
     // Allocate variable and temp allocas