@@ -962,25 +962,6 @@ macro_rules! define_queries_inner {
962
962
} ) *
963
963
}
964
964
965
- // This module and the functions in it exist only to provide a
966
- // predictable symbol name prefix for query providers. This is helpful
967
- // for analyzing queries in profilers.
968
- pub ( super ) mod __query_compute {
969
- use super :: * ;
970
-
971
- $( #[ inline( never) ]
972
- pub fn $name( tcx: TyCtxt <' tcx>, key: $K) -> $V {
973
- let provider = tcx. queries. providers. get( key. query_crate( ) )
974
- // HACK(eddyb) it's possible crates may be loaded after
975
- // the query engine is created, and because crate loading
976
- // is not yet integrated with the query engine, such crates
977
- // would be missing appropriate entries in `providers`.
978
- . unwrap_or( & tcx. queries. fallback_extern_providers)
979
- . $name;
980
- provider( tcx, key)
981
- } ) *
982
- }
983
-
984
965
$( impl <$tcx> QueryConfig <$tcx> for queries:: $name<$tcx> {
985
966
type Key = $K;
986
967
type Value = $V;
@@ -1006,9 +987,16 @@ macro_rules! define_queries_inner {
1006
987
DepConstructor :: $node( tcx, * key)
1007
988
}
1008
989
1009
- #[ inline]
990
+ #[ inline( never ) ]
1010
991
fn compute( tcx: TyCtxt <' tcx>, key: Self :: Key ) -> Self :: Value {
1011
- __query_compute:: $name( tcx, key)
992
+ let provider = tcx. queries. providers. get( key. query_crate( ) )
993
+ // HACK(eddyb) it's possible crates may be loaded after
994
+ // the query engine is created, and because crate loading
995
+ // is not yet integrated with the query engine, such crates
996
+ // would be missing appropriate entries in `providers`.
997
+ . unwrap_or( & tcx. queries. fallback_extern_providers)
998
+ . $name;
999
+ provider( tcx, key)
1012
1000
}
1013
1001
1014
1002
fn hash_result(
0 commit comments