@@ -69,28 +69,28 @@ impl<T> Default for Query<T> {
69
69
}
70
70
}
71
71
72
- pub struct Queries < ' comp > {
73
- compiler : & ' comp Compiler ,
74
- gcx : Once < GlobalCtxt < ' comp > > ,
72
+ pub struct Queries < ' tcx > {
73
+ compiler : & ' tcx Compiler ,
74
+ gcx : Once < GlobalCtxt < ' tcx > > ,
75
75
arenas : Once < AllArenas > ,
76
76
forest : Once < hir:: map:: Forest > ,
77
77
78
- local_arena : WorkerLocal < Arena < ' comp > > ,
78
+ local_arena : WorkerLocal < Arena < ' tcx > > ,
79
79
80
80
dep_graph_future : Query < Option < DepGraphFuture > > ,
81
81
parse : Query < ast:: Crate > ,
82
82
crate_name : Query < String > ,
83
83
register_plugins : Query < ( ast:: Crate , Lrc < LintStore > ) > ,
84
84
expansion : Query < ( ast:: Crate , Steal < Rc < RefCell < BoxedResolver > > > , Lrc < LintStore > ) > ,
85
85
dep_graph : Query < DepGraph > ,
86
- lower_to_hir : Query < ( & ' comp hir:: map:: Forest , Steal < ResolverOutputs > ) > ,
86
+ lower_to_hir : Query < ( & ' tcx hir:: map:: Forest , Steal < ResolverOutputs > ) > ,
87
87
prepare_outputs : Query < OutputFilenames > ,
88
- global_ctxt : Query < BoxedGlobalCtxt < ' comp > > ,
88
+ global_ctxt : Query < BoxedGlobalCtxt < ' tcx > > ,
89
89
ongoing_codegen : Query < Box < dyn Any > > ,
90
90
}
91
91
92
- impl < ' comp > Queries < ' comp > {
93
- pub fn new ( compiler : & ' comp Compiler ) -> Queries < ' comp > {
92
+ impl < ' tcx > Queries < ' tcx > {
93
+ pub fn new ( compiler : & ' tcx Compiler ) -> Queries < ' tcx > {
94
94
Queries {
95
95
compiler,
96
96
gcx : Once :: new ( ) ,
@@ -219,8 +219,8 @@ impl<'comp> Queries<'comp> {
219
219
}
220
220
221
221
pub fn lower_to_hir (
222
- & ' comp self ,
223
- ) -> Result < & Query < ( & ' comp hir:: map:: Forest , Steal < ResolverOutputs > ) > > {
222
+ & ' tcx self ,
223
+ ) -> Result < & Query < ( & ' tcx hir:: map:: Forest , Steal < ResolverOutputs > ) > > {
224
224
self . lower_to_hir . compute ( || {
225
225
let expansion_result = self . expansion ( ) ?;
226
226
let peeked = expansion_result. peek ( ) ;
@@ -253,7 +253,7 @@ impl<'comp> Queries<'comp> {
253
253
} )
254
254
}
255
255
256
- pub fn global_ctxt ( & ' comp self ) -> Result < & Query < BoxedGlobalCtxt < ' comp > > > {
256
+ pub fn global_ctxt ( & ' tcx self ) -> Result < & Query < BoxedGlobalCtxt < ' tcx > > > {
257
257
self . global_ctxt . compute ( || {
258
258
let crate_name = self . crate_name ( ) ?. peek ( ) . clone ( ) ;
259
259
let outputs = self . prepare_outputs ( ) ?. peek ( ) . clone ( ) ;
@@ -274,7 +274,7 @@ impl<'comp> Queries<'comp> {
274
274
} )
275
275
}
276
276
277
- pub fn ongoing_codegen ( & ' comp self ) -> Result < & Query < Box < dyn Any > > > {
277
+ pub fn ongoing_codegen ( & ' tcx self ) -> Result < & Query < Box < dyn Any > > > {
278
278
self . ongoing_codegen . compute ( || {
279
279
let outputs = self . prepare_outputs ( ) ?;
280
280
self . global_ctxt ( ) ?. peek_mut ( ) . enter ( |tcx| {
@@ -292,7 +292,7 @@ impl<'comp> Queries<'comp> {
292
292
} )
293
293
}
294
294
295
- pub fn linker ( & ' comp self ) -> Result < Linker > {
295
+ pub fn linker ( & ' tcx self ) -> Result < Linker > {
296
296
let dep_graph = self . dep_graph ( ) ?;
297
297
let prepare_outputs = self . prepare_outputs ( ) ?;
298
298
let ongoing_codegen = self . ongoing_codegen ( ) ?;
0 commit comments