@@ -11,10 +11,6 @@ pub trait ParameterizedOverTcx: 'static {
11
11
type Value < ' tcx > ;
12
12
}
13
13
14
- impl < T : ParameterizedOverTcx > ParameterizedOverTcx for & ' static [ T ] {
15
- type Value < ' tcx > = & ' tcx [ T :: Value < ' tcx > ] ;
16
- }
17
-
18
14
impl < T : ParameterizedOverTcx > ParameterizedOverTcx for Option < T > {
19
15
type Value < ' tcx > = Option < T :: Value < ' tcx > > ;
20
16
}
@@ -57,8 +53,6 @@ macro_rules! trivially_parameterized_over_tcx {
57
53
58
54
trivially_parameterized_over_tcx ! {
59
55
usize ,
60
- ( ) ,
61
- u32 ,
62
56
u64 ,
63
57
bool ,
64
58
std:: string:: String ,
@@ -76,16 +70,13 @@ trivially_parameterized_over_tcx! {
76
70
ty:: DeducedParamAttrs ,
77
71
ty:: Destructor ,
78
72
ty:: Generics ,
79
- ty:: ImplPolarity ,
80
73
ty:: ImplTraitInTraitData ,
81
74
ty:: ReprOptions ,
82
75
ty:: TraitDef ,
83
- ty:: UnusedGenericParams ,
84
76
ty:: Visibility <DefIndex >,
85
77
ty:: adjustment:: CoerceUnsizedInfo ,
86
78
ty:: fast_reject:: SimplifiedType ,
87
79
ty:: IntrinsicDef ,
88
- rustc_ast:: Attribute ,
89
80
rustc_ast:: DelimArgs ,
90
81
rustc_attr_data_structures:: StrippedCfgItem <rustc_hir:: def_id:: DefIndex >,
91
82
rustc_attr_data_structures:: ConstStability ,
@@ -96,7 +87,6 @@ trivially_parameterized_over_tcx! {
96
87
rustc_hir:: Defaultness ,
97
88
rustc_hir:: Safety ,
98
89
rustc_hir:: CoroutineKind ,
99
- rustc_hir:: IsAsync ,
100
90
rustc_hir:: LangItem ,
101
91
rustc_hir:: def:: DefKind ,
102
92
rustc_hir:: def:: DocLinkResMap ,
@@ -106,7 +96,6 @@ trivially_parameterized_over_tcx! {
106
96
rustc_hir:: OpaqueTyOrigin <rustc_hir:: def_id:: DefId >,
107
97
rustc_hir:: PreciseCapturingArgKind <Symbol , Symbol >,
108
98
rustc_index:: bit_set:: DenseBitSet <u32 >,
109
- rustc_index:: bit_set:: FiniteBitSet <u32 >,
110
99
rustc_session:: cstore:: ForeignModule ,
111
100
rustc_session:: cstore:: LinkagePreference ,
112
101
rustc_session:: cstore:: NativeLib ,
@@ -117,7 +106,6 @@ trivially_parameterized_over_tcx! {
117
106
rustc_span:: SourceFile ,
118
107
rustc_span:: Span ,
119
108
rustc_span:: Symbol ,
120
- rustc_span:: def_id:: DefPathHash ,
121
109
rustc_span:: hygiene:: SyntaxContextKey ,
122
110
rustc_span:: Ident ,
123
111
rustc_type_ir:: Variance ,
@@ -148,7 +136,6 @@ parameterized_over_tcx! {
148
136
ty:: ConstConditions ,
149
137
ty:: TraitRef ,
150
138
ty:: Const ,
151
- ty:: Predicate ,
152
139
ty:: Clause ,
153
140
ty:: ClauseKind ,
154
141
ty:: ImplTraitHeader ,
0 commit comments