Skip to content

Commit aa6916b

Browse files
committed
Use correct lang item for AssertKind::MisalignedPointerDereference
cc rust-lang#1381
1 parent c3a0431 commit aa6916b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/base.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ fn codegen_fn_body(fx: &mut FunctionCx<'_, '_, '_>, start_block: Block) {
372372

373373
codegen_panic_inner(
374374
fx,
375-
rustc_hir::LangItem::PanicBoundsCheck,
375+
rustc_hir::LangItem::PanicMisalignedPointerDereference,
376376
&[required, found, location],
377377
source_info.span,
378378
);

0 commit comments

Comments
 (0)