@@ -246,7 +246,7 @@ pub(super) enum TryGetJob<'a, 'tcx: 'a, D: QueryDescription<'tcx> + 'a> {
246
246
JobCompleted ( Result < ( D :: Value , DepNodeIndex ) , Box < CycleError < ' tcx > > > ) ,
247
247
}
248
248
249
- impl < ' a , ' gcx , ' tcx > TyCtxt < ' a , ' gcx , ' tcx > {
249
+ impl < ' a , ' gcx > TyCtxt < ' a , ' gcx , ' gcx > {
250
250
#[ inline( never) ]
251
251
#[ cold]
252
252
pub ( super ) fn report_cycle (
@@ -337,7 +337,7 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
337
337
if !self . dep_graph . is_fully_enabled ( ) {
338
338
return None ;
339
339
}
340
- match self . dep_graph . try_mark_green ( self . global_tcx ( ) , & dep_node) {
340
+ match self . dep_graph . try_mark_green ( self , & dep_node) {
341
341
Some ( dep_node_index) => {
342
342
debug_assert ! ( self . dep_graph. is_green( & dep_node) ) ;
343
343
self . dep_graph . read_index ( dep_node_index) ;
@@ -909,7 +909,7 @@ macro_rules! define_queries_inner {
909
909
$( $( #[ $attr] ) *
910
910
#[ inline( always) ]
911
911
pub fn $name( self , key: $K) -> $V {
912
- self . tcx. get_query:: <queries:: $name<' _>>( self . span, key)
912
+ self . tcx. global_tcx ( ) . get_query:: <queries:: $name<' _>>( self . span, key)
913
913
} ) *
914
914
}
915
915
0 commit comments