about summary refs log tree commit diff
path: root/compiler/rustc_monomorphize
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2022-12-21 13:49:48 +0100
committerRalf Jung <post@ralfj.de>2022-12-22 16:37:42 +0100
commit9f241b3a26b9344e061094052ecd67a3bde4b2e1 (patch)
tree369899a6bb95f1d8f6bfaa5eaf7af1f1cd7ce804 /compiler/rustc_monomorphize
parent2d8651a92761421b0437ffb44ba5670bea5ee1df (diff)
abort immediately on bad mem::zeroed/uninit
Diffstat (limited to 'compiler/rustc_monomorphize')
-rw-r--r--compiler/rustc_monomorphize/src/collector.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_monomorphize/src/collector.rs b/compiler/rustc_monomorphize/src/collector.rs
index deeeb9af4eb..59cc500a99d 100644
--- a/compiler/rustc_monomorphize/src/collector.rs
+++ b/compiler/rustc_monomorphize/src/collector.rs
@@ -843,7 +843,7 @@ impl<'a, 'tcx> MirVisitor<'tcx> for MirNeighborCollector<'a, 'tcx> {
             mir::TerminatorKind::Abort { .. } => {
                 let instance = Instance::mono(
                     tcx,
-                    tcx.require_lang_item(LangItem::PanicNoUnwind, Some(source)),
+                    tcx.require_lang_item(LangItem::PanicCannotUnwind, Some(source)),
                 );
                 if should_codegen_locally(tcx, &instance) {
                     self.output.push(create_fn_mono_item(tcx, instance, source));