]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/ty/context.rs
Auto merge of #61350 - RalfJung:alloc, r=oli-obk
[rust.git] / src / librustc / ty / context.rs
index b4823db9920543bfbee5958249f9ed54d9fa757d..b63527bc37f7e784546c6b76c6acd12ad7f3299e 100644 (file)
@@ -1156,7 +1156,7 @@ pub fn allocate_bytes(self, bytes: &[u8]) -> interpret::AllocId {
         // create an allocation that just contains these bytes
         let alloc = interpret::Allocation::from_byte_aligned_bytes(bytes, ());
         let alloc = self.intern_const_alloc(alloc);
-        self.alloc_map.lock().allocate(alloc)
+        self.alloc_map.lock().create_memory_alloc(alloc)
     }
 
     pub fn intern_stability(self, stab: attr::Stability) -> &'gcx attr::Stability {