@@ -264,7 +264,7 @@ where
264
264
/// Completes the query by updating the query cache with the `result`,
265
265
/// signals the waiter and forgets the JobOwner, so it won't poison the query
266
266
#[ inline( always) ]
267
- fn complete ( self , tcx : CTX , result : C :: Value , dep_node_index : DepNodeIndex ) -> C :: Stored {
267
+ fn complete ( self , result : C :: Value , dep_node_index : DepNodeIndex ) -> C :: Stored {
268
268
// We can move out of `self` here because we `mem::forget` it below
269
269
let key = unsafe { ptr:: read ( & self . key ) } ;
270
270
let state = self . state ;
@@ -278,7 +278,7 @@ where
278
278
QueryResult :: Started ( job) => job,
279
279
QueryResult :: Poisoned => panic ! ( ) ,
280
280
} ;
281
- let result = state. cache . complete ( tcx , & mut lock. cache , key, result, dep_node_index) ;
281
+ let result = state. cache . complete ( & mut lock. cache , key, result, dep_node_index) ;
282
282
( job, result)
283
283
} ;
284
284
@@ -432,7 +432,7 @@ where
432
432
tcx. store_diagnostics_for_anon_node ( dep_node_index, diagnostics) ;
433
433
}
434
434
435
- return job. complete ( tcx , result, dep_node_index) ;
435
+ return job. complete ( result, dep_node_index) ;
436
436
}
437
437
438
438
let dep_node = query. to_dep_node ( tcx, & key) ;
@@ -458,7 +458,7 @@ where
458
458
} )
459
459
} ) ;
460
460
if let Some ( ( result, dep_node_index) ) = loaded {
461
- return job. complete ( tcx , result, dep_node_index) ;
461
+ return job. complete ( result, dep_node_index) ;
462
462
}
463
463
}
464
464
@@ -609,7 +609,7 @@ where
609
609
}
610
610
}
611
611
612
- let result = job. complete ( tcx , result, dep_node_index) ;
612
+ let result = job. complete ( result, dep_node_index) ;
613
613
614
614
( result, dep_node_index)
615
615
}
0 commit comments