From 7181aa176393d601f43704d886e8e7afa4b14e45 Mon Sep 17 00:00:00 2001 From: Oliver Scherer Date: Tue, 4 Dec 2018 10:03:21 +0100 Subject: [PATCH] No need to export functions only used in the same module --- src/librustc/mir/interpret/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc/mir/interpret/mod.rs b/src/librustc/mir/interpret/mod.rs index 4d0956f018f6a..d54a1c9bb82f7 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)); } }