diff options
| author | Ben Kimock <kimockb@gmail.com> | 2023-06-26 22:20:41 -0400 |
|---|---|---|
| committer | Ben Kimock <kimockb@gmail.com> | 2023-06-26 22:20:41 -0400 |
| commit | cdaac8799bdcc7eb64ff824ebada81583448eca8 (patch) | |
| tree | 0dbbe1059bdfdc9e21c1406ec9dece3e4366ff96 /compiler/rustc_mir_transform/src | |
| parent | 2a15bdaaa1e62a36ff2748939e2e134035f8ce6e (diff) | |
| download | rust-cdaac8799bdcc7eb64ff824ebada81583448eca8.tar.gz rust-cdaac8799bdcc7eb64ff824ebada81583448eca8.zip | |
Mention the panic function in CheckAlignment
Diffstat (limited to 'compiler/rustc_mir_transform/src')
| -rw-r--r-- | compiler/rustc_mir_transform/src/check_alignment.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_mir_transform/src/check_alignment.rs b/compiler/rustc_mir_transform/src/check_alignment.rs index 856327e6ce6..05c54ab3097 100644 --- a/compiler/rustc_mir_transform/src/check_alignment.rs +++ b/compiler/rustc_mir_transform/src/check_alignment.rs @@ -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, }, }); |
