Use correct lang item for AssertKind::MisalignedPointerDereference
cc #1381
This commit is contained in:
parent
c3a0431731
commit
aa6916bd01
@ -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,
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user