We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a15bda commit cdaac87Copy full SHA for cdaac87
compiler/rustc_mir_transform/src/check_alignment.rs
@@ -240,9 +240,9 @@ fn insert_alignment_check<'tcx>(
240
required: Operand::Copy(alignment),
241
found: Operand::Copy(addr),
242
}),
243
- // The panic symbol that this calls is #[rustc_nounwind]. We never want to insert an
244
- // unwind into unsafe code, because unwinding could make a failing UB check turn into
245
- // 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.
246
unwind: UnwindAction::Unreachable,
247
},
248
});
0 commit comments