mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
Mention the panic function in CheckAlignment
This commit is contained in:
parent
2a15bdaaa1
commit
cdaac8799b
@ -240,9 +240,9 @@ fn insert_alignment_check<'tcx>(
|
||||
required: Operand::Copy(alignment),
|
||||
found: Operand::Copy(addr),
|
||||
}),
|
||||
// The panic symbol that this calls is #[rustc_nounwind]. We never want to insert an
|
||||
// unwind into unsafe code, because unwinding could make a failing UB check turn into
|
||||
// much worse UB when we start unwinding.
|
||||
// This calls panic_misaligned_pointer_dereference, which is #[rustc_nounwind].
|
||||
// We never want to insert an unwind into unsafe code, because unwinding could
|
||||
// make a failing UB check turn into much worse UB when we start unwinding.
|
||||
unwind: UnwindAction::Unreachable,
|
||||
},
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user