@@ -80,6 +80,7 @@ enum QueryResult<CTX: QueryContext> {
80
80
}
81
81
82
82
impl < CTX : QueryContext , C : QueryCache > QueryState < CTX , C > {
83
+ #[ inline( always) ]
83
84
pub fn iter_results < R > (
84
85
& self ,
85
86
f : impl for < ' a > FnOnce (
@@ -89,6 +90,7 @@ impl<CTX: QueryContext, C: QueryCache> QueryState<CTX, C> {
89
90
self . cache . iter ( & self . shards , |shard| & mut shard. cache , f)
90
91
}
91
92
93
+ #[ inline( always) ]
92
94
pub fn all_inactive ( & self ) -> bool {
93
95
let shards = self . shards . lock_shards ( ) ;
94
96
shards. iter ( ) . all ( |shard| shard. active . is_empty ( ) )
@@ -645,6 +647,7 @@ where
645
647
/// side-effects -- e.g., in order to report errors for erroneous programs.
646
648
///
647
649
/// Note: The optimization is only available during incr. comp.
650
+ #[ inline( never) ]
648
651
fn ensure_query_impl < CTX , C > (
649
652
tcx : CTX ,
650
653
state : & QueryState < CTX , C > ,
@@ -681,7 +684,8 @@ fn ensure_query_impl<CTX, C>(
681
684
}
682
685
}
683
686
684
- fn force_query_impl < C , CTX > (
687
+ #[ inline( never) ]
688
+ fn force_query_impl < CTX , C > (
685
689
tcx : CTX ,
686
690
state : & QueryState < CTX , C > ,
687
691
key : C :: Key ,
@@ -715,6 +719,7 @@ fn force_query_impl<C, CTX>(
715
719
) ;
716
720
}
717
721
722
+ #[ inline( always) ]
718
723
pub fn get_query < Q , CTX > ( tcx : CTX , span : Span , key : Q :: Key ) -> Q :: Stored
719
724
where
720
725
Q : QueryDescription < CTX > ,
@@ -726,6 +731,7 @@ where
726
731
get_query_impl ( tcx, Q :: query_state ( tcx) , span, key, & Q :: VTABLE )
727
732
}
728
733
734
+ #[ inline( always) ]
729
735
pub fn ensure_query < Q , CTX > ( tcx : CTX , key : Q :: Key )
730
736
where
731
737
Q : QueryDescription < CTX > ,
@@ -735,6 +741,7 @@ where
735
741
ensure_query_impl ( tcx, Q :: query_state ( tcx) , key, & Q :: VTABLE )
736
742
}
737
743
744
+ #[ inline( always) ]
738
745
pub fn force_query < Q , CTX > ( tcx : CTX , key : Q :: Key , span : Span , dep_node : DepNode < CTX :: DepKind > )
739
746
where
740
747
Q : QueryDescription < CTX > ,
0 commit comments