diff options
| author | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2023-07-12 19:03:27 +0000 |
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2023-07-12 19:03:27 +0000 |
| commit | aa6916bd0132af447367e7f6a137b317118ecd3a (patch) | |
| tree | ce4387fc9ab875ca0dd52a56010b14339fa1ee0c /src | |
| parent | c3a0431731e399b22670f83a7796649e50abd1b0 (diff) | |
| download | rust-aa6916bd0132af447367e7f6a137b317118ecd3a.tar.gz rust-aa6916bd0132af447367e7f6a137b317118ecd3a.zip | |
Use correct lang item for AssertKind::MisalignedPointerDereference
cc #1381
Diffstat (limited to 'src')
| -rw-r--r-- | src/base.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/base.rs b/src/base.rs index 8403093861c..e0ce19d2976 100644 --- a/src/base.rs +++ b/src/base.rs @@ -372,7 +372,7 @@ fn codegen_fn_body(fx: &mut FunctionCx<'_, '_, '_>, start_block: Block) { codegen_panic_inner( fx, - rustc_hir::LangItem::PanicBoundsCheck, + rustc_hir::LangItem::PanicMisalignedPointerDereference, &[required, found, location], source_info.span, ); |
