]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_mir/interpret/place.rs
Auto merge of #61350 - RalfJung:alloc, r=oli-obk
[rust.git] / src / librustc_mir / interpret / place.rs
index 36e6d44b0c40a8c0326f615756a2dd6f8a0908bb..6381d3888c29399727b0129614ca7ce779044922 100644 (file)
@@ -597,7 +597,7 @@ pub(super) fn eval_static_to_mplace(
                 // want!  This way, computing statics works concistently between codegen
                 // and miri: They use the same query to eventually obtain a `ty::Const`
                 // and use that for further computation.
-                let alloc = self.tcx.alloc_map.lock().intern_static(cid.instance.def_id());
+                let alloc = self.tcx.alloc_map.lock().create_static_alloc(cid.instance.def_id());
                 MPlaceTy::from_aligned_ptr(Pointer::from(alloc).with_default_tag(), layout)
             }
         })