Skip to content

Commit 7181aa1

Browse files
committed
No need to export functions only used in the same module
1 parent 982a966 commit 7181aa1

File tree

1 file changed

+1
-1
lines changed
  • src/librustc/mir/interpret

1 file changed

+1
-1
lines changed

src/librustc/mir/interpret/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ impl<'tcx> AllocMap<'tcx> {
404404

405405
/// Freeze an `AllocId` created with `reserve` by pointing it at an `Allocation`. May be called
406406
/// twice for the same `(AllocId, Allocation)` pair.
407-
pub fn set_alloc_id_same_memory(&mut self, id: AllocId, mem: &'tcx Allocation) {
407+
fn set_alloc_id_same_memory(&mut self, id: AllocId, mem: &'tcx Allocation) {
408408
self.id_to_kind.insert_same(id, AllocKind::Memory(mem));
409409
}
410410
}

0 commit comments

Comments
 (0)