fmt
This commit is contained in:
parent
036929d86d
commit
b76b26ee1a
1 changed files with 1 additions and 2 deletions
|
|
@ -908,8 +908,7 @@ impl<'mir, 'tcx> Machine<'mir, 'tcx> for MiriMachine<'mir, 'tcx> {
|
|||
};
|
||||
let (shim_size, shim_align, _kind) = ecx.get_alloc_info(alloc_id);
|
||||
let def_ty = ecx.tcx.type_of(def_id).subst_identity();
|
||||
let extern_decl_layout =
|
||||
ecx.tcx.layout_of(ty::ParamEnv::empty().and(def_ty)).unwrap();
|
||||
let extern_decl_layout = ecx.tcx.layout_of(ty::ParamEnv::empty().and(def_ty)).unwrap();
|
||||
if extern_decl_layout.size != shim_size || extern_decl_layout.align.abi != shim_align {
|
||||
throw_unsup_format!(
|
||||
"`extern` static `{name}` from crate `{krate}` has been declared \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue