@@ -57,7 +57,7 @@ use rustc_data_structures::accumulate_vec::AccumulateVec;
5757use rustc_data_structures:: stable_hasher:: { HashStable , hash_stable_hashmap,
5858 StableHasher , StableHasherResult ,
5959 StableVec } ;
60- use arena:: { TypedArena , DroplessArena } ;
60+ use arena:: { TypedArena , SyncDroplessArena } ;
6161use rustc_data_structures:: indexed_vec:: IndexVec ;
6262use rustc_data_structures:: sync:: { Lrc , Lock } ;
6363use std:: any:: Any ;
@@ -82,14 +82,14 @@ use hir;
8282
8383pub struct AllArenas < ' tcx > {
8484 pub global : GlobalArenas < ' tcx > ,
85- pub interner : DroplessArena ,
85+ pub interner : SyncDroplessArena ,
8686}
8787
8888impl < ' tcx > AllArenas < ' tcx > {
8989 pub fn new ( ) -> Self {
9090 AllArenas {
9191 global : GlobalArenas :: new ( ) ,
92- interner : DroplessArena :: new ( ) ,
92+ interner : SyncDroplessArena :: new ( ) ,
9393 }
9494 }
9595}
@@ -129,7 +129,7 @@ type InternedSet<'tcx, T> = Lock<FxHashSet<Interned<'tcx, T>>>;
129129
130130pub struct CtxtInterners < ' tcx > {
131131 /// The arena that types, regions, etc are allocated from
132- arena : & ' tcx DroplessArena ,
132+ arena : & ' tcx SyncDroplessArena ,
133133
134134 /// Specifically use a speedy hash algorithm for these hash sets,
135135 /// they're accessed quite often.
@@ -146,7 +146,7 @@ pub struct CtxtInterners<'tcx> {
146146}
147147
148148impl < ' gcx : ' tcx , ' tcx > CtxtInterners < ' tcx > {
149- fn new ( arena : & ' tcx DroplessArena ) -> CtxtInterners < ' tcx > {
149+ fn new ( arena : & ' tcx SyncDroplessArena ) -> CtxtInterners < ' tcx > {
150150 CtxtInterners {
151151 arena,
152152 type_ : Default :: default ( ) ,
@@ -1554,7 +1554,7 @@ impl<'gcx: 'tcx, 'tcx> GlobalCtxt<'gcx> {
15541554 /// Call the closure with a local `TyCtxt` using the given arena.
15551555 pub fn enter_local < F , R > (
15561556 & self ,
1557- arena : & ' tcx DroplessArena ,
1557+ arena : & ' tcx SyncDroplessArena ,
15581558 f : F
15591559 ) -> R
15601560 where
0 commit comments