@@ -50,7 +50,6 @@ pub struct QueryState<D, Q, C: QueryCache> {
50
50
}
51
51
52
52
impl < D , Q , C : QueryCache > QueryState < D , Q , C > {
53
- #[ inline]
54
53
pub ( super ) fn get_lookup < ' tcx > (
55
54
& ' tcx self ,
56
55
key : & C :: Key ,
84
83
Q : Clone ,
85
84
C : QueryCache ,
86
85
{
87
- #[ inline( always) ]
88
86
pub fn iter_results < R > (
89
87
& self ,
90
88
f : impl for < ' a > FnOnce (
94
92
self . cache . iter ( & self . shards , |shard| & mut shard. cache , f)
95
93
}
96
94
97
- #[ inline( always) ]
98
95
pub fn all_inactive ( & self ) -> bool {
99
96
let shards = self . shards . lock_shards ( ) ;
100
97
shards. iter ( ) . all ( |shard| shard. active . is_empty ( ) )
@@ -270,7 +267,6 @@ where
270
267
271
268
/// Completes the query by updating the query cache with the `result`,
272
269
/// signals the waiter and forgets the JobOwner, so it won't poison the query
273
- #[ inline( always) ]
274
270
fn complete ( self , result : C :: Value , dep_node_index : DepNodeIndex ) -> C :: Stored {
275
271
// We can move out of `self` here because we `mem::forget` it below
276
272
let key = unsafe { ptr:: read ( & self . key ) } ;
@@ -294,7 +290,6 @@ where
294
290
}
295
291
}
296
292
297
- #[ inline( always) ]
298
293
fn with_diagnostics < F , R > ( f : F ) -> ( R , ThinVec < Diagnostic > )
299
294
where
300
295
F : FnOnce ( Option < & Lock < ThinVec < Diagnostic > > > ) -> R ,
@@ -362,7 +357,6 @@ where
362
357
/// It returns the shard index and a lock guard to the shard,
363
358
/// which will be used if the query is not in the cache and we need
364
359
/// to compute it.
365
- #[ inline( always) ]
366
360
fn try_get_cached < CTX , C , R , OnHit , OnMiss > (
367
361
tcx : CTX ,
368
362
state : & QueryState < CTX :: DepKind , CTX :: Query , C > ,
@@ -394,7 +388,6 @@ where
394
388
)
395
389
}
396
390
397
- #[ inline( always) ]
398
391
fn try_execute_query < CTX , C > (
399
392
tcx : CTX ,
400
393
state : & QueryState < CTX :: DepKind , CTX :: Query , C > ,
@@ -727,7 +720,6 @@ fn force_query_impl<CTX, C>(
727
720
) ;
728
721
}
729
722
730
- #[ inline( always) ]
731
723
pub fn get_query < Q , CTX > ( tcx : CTX , span : Span , key : Q :: Key ) -> Q :: Stored
732
724
where
733
725
Q : QueryDescription < CTX > ,
@@ -739,7 +731,6 @@ where
739
731
get_query_impl ( tcx, Q :: query_state ( tcx) , span, key, & Q :: VTABLE )
740
732
}
741
733
742
- #[ inline( always) ]
743
734
pub fn ensure_query < Q , CTX > ( tcx : CTX , key : Q :: Key )
744
735
where
745
736
Q : QueryDescription < CTX > ,
@@ -749,7 +740,6 @@ where
749
740
ensure_query_impl ( tcx, Q :: query_state ( tcx) , key, & Q :: VTABLE )
750
741
}
751
742
752
- #[ inline( always) ]
753
743
pub fn force_query < Q , CTX > ( tcx : CTX , key : Q :: Key , span : Span , dep_node : DepNode < CTX :: DepKind > )
754
744
where
755
745
Q : QueryDescription < CTX > ,
0 commit comments