Auto merge of #113078 - saethlin:mention-the-function, r=RalfJung
Mention the panic function in CheckAlignment Per https://github.com/rust-lang/rust/pull/112599#discussion_r1242333935 r? `@RalfJung`
This commit is contained in:
commit
f42f19b6d3
1 changed files with 3 additions and 3 deletions
|
@ -240,9 +240,9 @@ fn insert_alignment_check<'tcx>(
|
||||||
required: Operand::Copy(alignment),
|
required: Operand::Copy(alignment),
|
||||||
found: Operand::Copy(addr),
|
found: Operand::Copy(addr),
|
||||||
}),
|
}),
|
||||||
// The panic symbol that this calls is #[rustc_nounwind]. We never want to insert an
|
// This calls panic_misaligned_pointer_dereference, which is #[rustc_nounwind].
|
||||||
// unwind into unsafe code, because unwinding could make a failing UB check turn into
|
// We never want to insert an unwind into unsafe code, because unwinding could
|
||||||
// much worse UB when we start unwinding.
|
// make a failing UB check turn into much worse UB when we start unwinding.
|
||||||
unwind: UnwindAction::Unreachable,
|
unwind: UnwindAction::Unreachable,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue