@@ -91,7 +91,7 @@ rustc_queries! {
91
91
/// Maps DefId's that have an associated Mir to the result
92
92
/// of the MIR qualify_consts pass. The actual meaning of
93
93
/// the value isn't known except to the pass itself.
94
- query mir_const_qualif( key: DefId ) -> ( u8 , Lrc < BitSet <mir:: Local > >) {
94
+ query mir_const_qualif( key: DefId ) -> ( u8 , & ' tcx BitSet <mir:: Local >) {
95
95
cache { key. is_local( ) }
96
96
}
97
97
@@ -174,7 +174,7 @@ rustc_queries! {
174
174
175
175
/// Returns the inferred outlives predicates (e.g., for `struct
176
176
/// Foo<'a, T> { x: &'a T }`, this would return `T: 'a`).
177
- query inferred_outlives_of( _: DefId ) -> Lrc < Vec < ty:: Predicate <' tcx>>> { }
177
+ query inferred_outlives_of( _: DefId ) -> & ' tcx [ ty:: Predicate <' tcx>] { }
178
178
179
179
/// Maps from the `DefId` of a trait to the list of
180
180
/// super-predicates. This is a subset of the full list of
@@ -456,7 +456,7 @@ rustc_queries! {
456
456
457
457
/// Per-body `region::ScopeTree`. The `DefId` should be the owner `DefId` for the body;
458
458
/// in the case of closures, this will be redirected to the enclosing function.
459
- query region_scope_tree( _: DefId ) -> Lrc < region:: ScopeTree > { }
459
+ query region_scope_tree( _: DefId ) -> & ' tcx region:: ScopeTree { }
460
460
461
461
query mir_shims( key: ty:: InstanceDef <' tcx>) -> & ' tcx mir:: Mir <' tcx> {
462
462
no_force
@@ -504,7 +504,7 @@ rustc_queries! {
504
504
}
505
505
cache { true }
506
506
}
507
- query rvalue_promotable_map( key: DefId ) -> Lrc < ItemLocalSet > {
507
+ query rvalue_promotable_map( key: DefId ) -> & ' tcx ItemLocalSet {
508
508
desc { |tcx|
509
509
"checking which parts of `{}` are promotable to static" ,
510
510
tcx. def_path_str( key)
@@ -540,7 +540,7 @@ rustc_queries! {
540
540
}
541
541
542
542
TypeChecking {
543
- query trait_impls_of( key: DefId ) -> Lrc < ty:: trait_def:: TraitImpls > {
543
+ query trait_impls_of( key: DefId ) -> & ' tcx ty:: trait_def:: TraitImpls {
544
544
desc { |tcx| "trait impls of `{}`" , tcx. def_path_str( key) }
545
545
}
546
546
query specialization_graph_of( _: DefId ) -> & ' tcx specialization_graph:: Graph { }
@@ -892,7 +892,7 @@ rustc_queries! {
892
892
query normalize_projection_ty(
893
893
goal: CanonicalProjectionGoal <' tcx>
894
894
) -> Result <
895
- Lrc < Canonical <' tcx, canonical:: QueryResponse <' tcx, NormalizationResult <' tcx> >>>,
895
+ & ' tcx Canonical <' tcx, canonical:: QueryResponse <' tcx, NormalizationResult <' tcx>>>,
896
896
NoSolution ,
897
897
> {
898
898
no_force
@@ -910,7 +910,7 @@ rustc_queries! {
910
910
query implied_outlives_bounds(
911
911
goal: CanonicalTyGoal <' tcx>
912
912
) -> Result <
913
- Lrc < Canonical <' tcx, canonical:: QueryResponse <' tcx, Vec <OutlivesBound <' tcx> >>>>,
913
+ & ' tcx Canonical <' tcx, canonical:: QueryResponse <' tcx, Vec <OutlivesBound <' tcx>>>>,
914
914
NoSolution ,
915
915
> {
916
916
no_force
@@ -921,7 +921,7 @@ rustc_queries! {
921
921
query dropck_outlives(
922
922
goal: CanonicalTyGoal <' tcx>
923
923
) -> Result <
924
- Lrc < Canonical <' tcx, canonical:: QueryResponse <' tcx, DropckOutlivesResult <' tcx> >>>,
924
+ & ' tcx Canonical <' tcx, canonical:: QueryResponse <' tcx, DropckOutlivesResult <' tcx>>>,
925
925
NoSolution ,
926
926
> {
927
927
no_force
@@ -940,7 +940,7 @@ rustc_queries! {
940
940
query evaluate_goal(
941
941
goal: traits:: ChalkCanonicalGoal <' tcx>
942
942
) -> Result <
943
- Lrc < Canonical <' tcx, canonical:: QueryResponse <' tcx, ( ) > >>,
943
+ & ' tcx Canonical <' tcx, canonical:: QueryResponse <' tcx, ( ) >>,
944
944
NoSolution
945
945
> {
946
946
no_force
@@ -951,7 +951,7 @@ rustc_queries! {
951
951
query type_op_ascribe_user_type(
952
952
goal: CanonicalTypeOpAscribeUserTypeGoal <' tcx>
953
953
) -> Result <
954
- Lrc < Canonical <' tcx, canonical:: QueryResponse <' tcx, ( ) > >>,
954
+ & ' tcx Canonical <' tcx, canonical:: QueryResponse <' tcx, ( ) >>,
955
955
NoSolution ,
956
956
> {
957
957
no_force
@@ -962,7 +962,7 @@ rustc_queries! {
962
962
query type_op_eq(
963
963
goal: CanonicalTypeOpEqGoal <' tcx>
964
964
) -> Result <
965
- Lrc < Canonical <' tcx, canonical:: QueryResponse <' tcx, ( ) > >>,
965
+ & ' tcx Canonical <' tcx, canonical:: QueryResponse <' tcx, ( ) >>,
966
966
NoSolution ,
967
967
> {
968
968
no_force
@@ -973,7 +973,7 @@ rustc_queries! {
973
973
query type_op_subtype(
974
974
goal: CanonicalTypeOpSubtypeGoal <' tcx>
975
975
) -> Result <
976
- Lrc < Canonical <' tcx, canonical:: QueryResponse <' tcx, ( ) > >>,
976
+ & ' tcx Canonical <' tcx, canonical:: QueryResponse <' tcx, ( ) >>,
977
977
NoSolution ,
978
978
> {
979
979
no_force
@@ -984,7 +984,7 @@ rustc_queries! {
984
984
query type_op_prove_predicate(
985
985
goal: CanonicalTypeOpProvePredicateGoal <' tcx>
986
986
) -> Result <
987
- Lrc < Canonical <' tcx, canonical:: QueryResponse <' tcx, ( ) > >>,
987
+ & ' tcx Canonical <' tcx, canonical:: QueryResponse <' tcx, ( ) >>,
988
988
NoSolution ,
989
989
> {
990
990
no_force
@@ -995,7 +995,7 @@ rustc_queries! {
995
995
query type_op_normalize_ty(
996
996
goal: CanonicalTypeOpNormalizeGoal <' tcx, Ty <' tcx>>
997
997
) -> Result <
998
- Lrc < Canonical <' tcx, canonical:: QueryResponse <' tcx, Ty <' tcx> >>>,
998
+ & ' tcx Canonical <' tcx, canonical:: QueryResponse <' tcx, Ty <' tcx>>>,
999
999
NoSolution ,
1000
1000
> {
1001
1001
no_force
@@ -1006,7 +1006,7 @@ rustc_queries! {
1006
1006
query type_op_normalize_predicate(
1007
1007
goal: CanonicalTypeOpNormalizeGoal <' tcx, ty:: Predicate <' tcx>>
1008
1008
) -> Result <
1009
- Lrc < Canonical <' tcx, canonical:: QueryResponse <' tcx, ty:: Predicate <' tcx> >>>,
1009
+ & ' tcx Canonical <' tcx, canonical:: QueryResponse <' tcx, ty:: Predicate <' tcx>>>,
1010
1010
NoSolution ,
1011
1011
> {
1012
1012
no_force
@@ -1017,7 +1017,7 @@ rustc_queries! {
1017
1017
query type_op_normalize_poly_fn_sig(
1018
1018
goal: CanonicalTypeOpNormalizeGoal <' tcx, ty:: PolyFnSig <' tcx>>
1019
1019
) -> Result <
1020
- Lrc < Canonical <' tcx, canonical:: QueryResponse <' tcx, ty:: PolyFnSig <' tcx> >>>,
1020
+ & ' tcx Canonical <' tcx, canonical:: QueryResponse <' tcx, ty:: PolyFnSig <' tcx>>>,
1021
1021
NoSolution ,
1022
1022
> {
1023
1023
no_force
@@ -1028,7 +1028,7 @@ rustc_queries! {
1028
1028
query type_op_normalize_fn_sig(
1029
1029
goal: CanonicalTypeOpNormalizeGoal <' tcx, ty:: FnSig <' tcx>>
1030
1030
) -> Result <
1031
- Lrc < Canonical <' tcx, canonical:: QueryResponse <' tcx, ty:: FnSig <' tcx> >>>,
1031
+ & ' tcx Canonical <' tcx, canonical:: QueryResponse <' tcx, ty:: FnSig <' tcx>>>,
1032
1032
NoSolution ,
1033
1033
> {
1034
1034
no_force
0 commit comments