diff --git a/src/librustc/mir/interpret/mod.rs b/src/librustc/mir/interpret/mod.rs index 4d0956f018f6..d54a1c9bb82f 100644 --- a/src/librustc/mir/interpret/mod.rs +++ b/src/librustc/mir/interpret/mod.rs @@ -404,7 +404,7 @@ impl<'tcx> AllocMap<'tcx> { /// Freeze an `AllocId` created with `reserve` by pointing it at an `Allocation`. May be called /// twice for the same `(AllocId, Allocation)` pair. - pub fn set_alloc_id_same_memory(&mut self, id: AllocId, mem: &'tcx Allocation) { + fn set_alloc_id_same_memory(&mut self, id: AllocId, mem: &'tcx Allocation) { self.id_to_kind.insert_same(id, AllocKind::Memory(mem)); } }