about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2023-02-18 20:38:08 +0100
committerRalf Jung <post@ralfj.de>2023-02-18 20:38:08 +0100
commitb76b26ee1aff1cb1bf4ea5c66da3b938ddd3bdcc (patch)
treef69278760a89acf06afe01e551473fd080b4e406 /src
parent036929d86dc03197668cd9c6673dcbc4e42dfb17 (diff)
downloadrust-b76b26ee1aff1cb1bf4ea5c66da3b938ddd3bdcc.tar.gz
rust-b76b26ee1aff1cb1bf4ea5c66da3b938ddd3bdcc.zip
fmt
Diffstat (limited to 'src')
-rw-r--r--src/tools/miri/src/machine.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tools/miri/src/machine.rs b/src/tools/miri/src/machine.rs
index 95b912d92c0..f9a6ef34c2f 100644
--- a/src/tools/miri/src/machine.rs
+++ b/src/tools/miri/src/machine.rs
@@ -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 \