File tree 2 files changed +2
-3
lines changed
2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -93,6 +93,7 @@ macro_rules! arena_types {
93
93
rustc:: hir:: def_id:: CrateNum
94
94
>
95
95
>,
96
+ [ few] hir_forest: rustc:: hir:: map:: Forest ,
96
97
[ few] diagnostic_items: rustc_data_structures:: fx:: FxHashMap <
97
98
syntax:: symbol:: Symbol ,
98
99
rustc:: hir:: def_id:: DefId ,
Original file line number Diff line number Diff line change @@ -72,7 +72,6 @@ impl<T> Default for Query<T> {
72
72
pub struct Queries < ' tcx > {
73
73
compiler : & ' tcx Compiler ,
74
74
gcx : Once < GlobalCtxt < ' tcx > > ,
75
- forest : Once < hir:: map:: Forest > ,
76
75
77
76
all_arenas : AllArenas ,
78
77
arena : WorkerLocal < Arena < ' tcx > > ,
@@ -94,7 +93,6 @@ impl<'tcx> Queries<'tcx> {
94
93
Queries {
95
94
compiler,
96
95
gcx : Once :: new ( ) ,
97
- forest : Once :: new ( ) ,
98
96
all_arenas : AllArenas :: new ( ) ,
99
97
arena : WorkerLocal :: new ( |_| Arena :: default ( ) ) ,
100
98
dep_graph_future : Default :: default ( ) ,
@@ -236,7 +234,7 @@ impl<'tcx> Queries<'tcx> {
236
234
& krate
237
235
)
238
236
} ) ?;
239
- let hir = self . forest . init_locking ( || hir) ;
237
+ let hir = self . arena . alloc ( hir) ;
240
238
Ok ( ( hir, Steal :: new ( BoxedResolver :: to_resolver_outputs ( resolver) ) ) )
241
239
} )
242
240
}
You can’t perform that action at this time.
0 commit comments