@@ -57,7 +57,7 @@ use rustc_data_structures::accumulate_vec::AccumulateVec;
57
57
use rustc_data_structures:: stable_hasher:: { HashStable , hash_stable_hashmap,
58
58
StableHasher , StableHasherResult ,
59
59
StableVec } ;
60
- use arena:: { TypedArena , DroplessArena } ;
60
+ use arena:: { TypedArena , SyncDroplessArena } ;
61
61
use rustc_data_structures:: indexed_vec:: IndexVec ;
62
62
use rustc_data_structures:: sync:: { Lrc , Lock } ;
63
63
use std:: any:: Any ;
@@ -82,14 +82,14 @@ use hir;
82
82
83
83
pub struct AllArenas < ' tcx > {
84
84
pub global : GlobalArenas < ' tcx > ,
85
- pub interner : DroplessArena ,
85
+ pub interner : SyncDroplessArena ,
86
86
}
87
87
88
88
impl < ' tcx > AllArenas < ' tcx > {
89
89
pub fn new ( ) -> Self {
90
90
AllArenas {
91
91
global : GlobalArenas :: new ( ) ,
92
- interner : DroplessArena :: new ( ) ,
92
+ interner : SyncDroplessArena :: new ( ) ,
93
93
}
94
94
}
95
95
}
@@ -129,7 +129,7 @@ type InternedSet<'tcx, T> = Lock<FxHashSet<Interned<'tcx, T>>>;
129
129
130
130
pub struct CtxtInterners < ' tcx > {
131
131
/// The arena that types, regions, etc are allocated from
132
- arena : & ' tcx DroplessArena ,
132
+ arena : & ' tcx SyncDroplessArena ,
133
133
134
134
/// Specifically use a speedy hash algorithm for these hash sets,
135
135
/// they're accessed quite often.
@@ -146,7 +146,7 @@ pub struct CtxtInterners<'tcx> {
146
146
}
147
147
148
148
impl < ' gcx : ' tcx , ' tcx > CtxtInterners < ' tcx > {
149
- fn new ( arena : & ' tcx DroplessArena ) -> CtxtInterners < ' tcx > {
149
+ fn new ( arena : & ' tcx SyncDroplessArena ) -> CtxtInterners < ' tcx > {
150
150
CtxtInterners {
151
151
arena,
152
152
type_ : Default :: default ( ) ,
@@ -1554,7 +1554,7 @@ impl<'gcx: 'tcx, 'tcx> GlobalCtxt<'gcx> {
1554
1554
/// Call the closure with a local `TyCtxt` using the given arena.
1555
1555
pub fn enter_local < F , R > (
1556
1556
& self ,
1557
- arena : & ' tcx DroplessArena ,
1557
+ arena : & ' tcx SyncDroplessArena ,
1558
1558
f : F
1559
1559
) -> R
1560
1560
where
0 commit comments