File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/librustc_middle/mir/interpret Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -401,7 +401,7 @@ impl GlobalAlloc<'tcx> {
401
401
}
402
402
}
403
403
404
- pub struct AllocMap < ' tcx > {
404
+ crate struct AllocMap < ' tcx > {
405
405
/// Maps `AllocId`s to their corresponding allocations.
406
406
alloc_map : FxHashMap < AllocId , GlobalAlloc < ' tcx > > ,
407
407
@@ -417,10 +417,10 @@ pub struct AllocMap<'tcx> {
417
417
}
418
418
419
419
impl < ' tcx > AllocMap < ' tcx > {
420
- pub fn new ( ) -> Self {
420
+ crate fn new ( ) -> Self {
421
421
AllocMap { alloc_map : Default :: default ( ) , dedup : Default :: default ( ) , next_id : AllocId ( 0 ) }
422
422
}
423
- pub fn reserve ( & mut self ) -> AllocId {
423
+ fn reserve ( & mut self ) -> AllocId {
424
424
let next = self . next_id ;
425
425
self . next_id . 0 = self . next_id . 0 . checked_add ( 1 ) . expect (
426
426
"You overflowed a u64 by incrementing by 1... \
You can’t perform that action at this time.
0 commit comments