11
11
#![ warn( unreachable_pub) ]
12
12
// tidy-alphabetical-end
13
13
14
- use field_offset:: offset_of;
15
14
use rustc_data_structures:: stable_hasher:: HashStable ;
16
15
use rustc_data_structures:: sync:: AtomicU64 ;
17
16
use rustc_middle:: arena:: Arena ;
@@ -20,8 +19,7 @@ use rustc_middle::query::erase::{Erase, erase, restore};
20
19
use rustc_middle:: query:: on_disk_cache:: { CacheEncoder , EncodedDepNodeIndex , OnDiskCache } ;
21
20
use rustc_middle:: query:: plumbing:: { DynamicQuery , QuerySystem , QuerySystemFns } ;
22
21
use rustc_middle:: query:: {
23
- AsLocalKey , DynamicQueries , ExternProviders , Providers , QueryCaches , QueryEngine , QueryStates ,
24
- queries,
22
+ AsLocalKey , DynamicQueries , ExternProviders , Providers , QueryEngine , queries,
25
23
} ;
26
24
use rustc_middle:: ty:: TyCtxt ;
27
25
use rustc_query_system:: dep_graph:: SerializedDepNodeIndex ;
@@ -89,15 +87,15 @@ where
89
87
where
90
88
QueryCtxt < ' tcx > : ' a ,
91
89
{
92
- self . dynamic . query_state . apply ( & qcx. tcx . query_system . states )
90
+ ( self . dynamic . query_state ) ( & qcx. tcx . query_system . states )
93
91
}
94
92
95
93
#[ inline( always) ]
96
94
fn query_cache < ' a > ( self , qcx : QueryCtxt < ' tcx > ) -> & ' a Self :: Cache
97
95
where
98
96
' tcx : ' a ,
99
97
{
100
- self . dynamic . query_cache . apply ( & qcx. tcx . query_system . caches )
98
+ ( self . dynamic . query_cache ) ( & qcx. tcx . query_system . caches )
101
99
}
102
100
103
101
#[ inline( always) ]
0 commit comments