@@ -42,14 +42,14 @@ impl<CTX: QueryContext, K, C: Default> Default for QueryStateShard<CTX, K, C> {
4242 }
4343}
4444
45- pub struct QueryState < CTX : QueryContext , C : QueryCache < CTX > > {
45+ pub struct QueryState < CTX : QueryContext , C : QueryCache > {
4646 cache : C ,
4747 shards : Sharded < QueryStateShard < CTX , C :: Key , C :: Sharded > > ,
4848 #[ cfg( debug_assertions) ]
4949 pub cache_hits : AtomicUsize ,
5050}
5151
52- impl < CTX : QueryContext , C : QueryCache < CTX > > QueryState < CTX , C > {
52+ impl < CTX : QueryContext , C : QueryCache > QueryState < CTX , C > {
5353 pub ( super ) fn get_lookup < ' tcx > (
5454 & ' tcx self ,
5555 key : & C :: Key ,
@@ -77,7 +77,7 @@ enum QueryResult<CTX: QueryContext> {
7777 Poisoned ,
7878}
7979
80- impl < CTX : QueryContext , C : QueryCache < CTX > > QueryState < CTX , C > {
80+ impl < CTX : QueryContext , C : QueryCache > QueryState < CTX , C > {
8181 pub fn iter_results < R > (
8282 & self ,
8383 f : impl for < ' a > FnOnce (
@@ -122,7 +122,7 @@ impl<CTX: QueryContext, C: QueryCache<CTX>> QueryState<CTX, C> {
122122 }
123123}
124124
125- impl < CTX : QueryContext , C : QueryCache < CTX > > Default for QueryState < CTX , C > {
125+ impl < CTX : QueryContext , C : QueryCache > Default for QueryState < CTX , C > {
126126 fn default ( ) -> QueryState < CTX , C > {
127127 QueryState {
128128 cache : C :: default ( ) ,
@@ -144,7 +144,7 @@ pub struct QueryLookup<'tcx, CTX: QueryContext, K, C> {
144144/// This will poison the relevant query if dropped.
145145struct JobOwner < ' tcx , CTX : QueryContext , C >
146146where
147- C : QueryCache < CTX > ,
147+ C : QueryCache ,
148148 C :: Key : Eq + Hash + Clone + Debug ,
149149 C :: Value : Clone ,
150150{
@@ -155,7 +155,7 @@ where
155155
156156impl < ' tcx , CTX : QueryContext , C > JobOwner < ' tcx , CTX , C >
157157where
158- C : QueryCache < CTX > ,
158+ C : QueryCache ,
159159 C :: Key : Eq + Hash + Clone + Debug ,
160160 C :: Value : Clone ,
161161{
@@ -292,7 +292,7 @@ where
292292 ( result, diagnostics. into_inner ( ) )
293293}
294294
295- impl < ' tcx , CTX : QueryContext , C : QueryCache < CTX > > Drop for JobOwner < ' tcx , CTX , C >
295+ impl < ' tcx , CTX : QueryContext , C : QueryCache > Drop for JobOwner < ' tcx , CTX , C >
296296where
297297 C :: Key : Eq + Hash + Clone + Debug ,
298298 C :: Value : Clone ,
@@ -326,7 +326,7 @@ pub struct CycleError<Q> {
326326}
327327
328328/// The result of `try_start`.
329- enum TryGetJob < ' tcx , CTX : QueryContext , C : QueryCache < CTX > >
329+ enum TryGetJob < ' tcx , CTX : QueryContext , C : QueryCache >
330330where
331331 C :: Key : Eq + Hash + Clone + Debug ,
332332 C :: Value : Clone ,
@@ -358,7 +358,7 @@ fn try_get_cached<CTX, C, R, OnHit, OnMiss>(
358358 on_miss : OnMiss ,
359359) -> R
360360where
361- C : QueryCache < CTX > ,
361+ C : QueryCache ,
362362 CTX : QueryContext ,
363363 OnHit : FnOnce ( & C :: Value , DepNodeIndex ) -> R ,
364364 OnMiss : FnOnce ( C :: Key , QueryLookup < ' _ , CTX , C :: Key , C :: Sharded > ) -> R ,
@@ -385,7 +385,7 @@ fn try_execute_query<Q, CTX>(
385385 tcx : CTX ,
386386 span : Span ,
387387 key : Q :: Key ,
388- lookup : QueryLookup < ' _ , CTX , Q :: Key , <Q :: Cache as QueryCache < CTX > >:: Sharded > ,
388+ lookup : QueryLookup < ' _ , CTX , Q :: Key , <Q :: Cache as QueryCache >:: Sharded > ,
389389) -> Q :: Value
390390where
391391 Q : QueryDescription < CTX > ,
0 commit comments