@@ -11,10 +11,6 @@ pub trait ParameterizedOverTcx: 'static {
1111 type Value < ' tcx > ;
1212}
1313
14- impl < T : ParameterizedOverTcx > ParameterizedOverTcx for & ' static [ T ] {
15- type Value < ' tcx > = & ' tcx [ T :: Value < ' tcx > ] ;
16- }
17-
1814impl < T : ParameterizedOverTcx > ParameterizedOverTcx for Option < T > {
1915 type Value < ' tcx > = Option < T :: Value < ' tcx > > ;
2016}
@@ -57,8 +53,6 @@ macro_rules! trivially_parameterized_over_tcx {
5753
5854trivially_parameterized_over_tcx ! {
5955 usize ,
60- ( ) ,
61- u32 ,
6256 u64 ,
6357 bool ,
6458 std:: string:: String ,
@@ -76,16 +70,13 @@ trivially_parameterized_over_tcx! {
7670 ty:: DeducedParamAttrs ,
7771 ty:: Destructor ,
7872 ty:: Generics ,
79- ty:: ImplPolarity ,
8073 ty:: ImplTraitInTraitData ,
8174 ty:: ReprOptions ,
8275 ty:: TraitDef ,
83- ty:: UnusedGenericParams ,
8476 ty:: Visibility <DefIndex >,
8577 ty:: adjustment:: CoerceUnsizedInfo ,
8678 ty:: fast_reject:: SimplifiedType ,
8779 ty:: IntrinsicDef ,
88- rustc_ast:: Attribute ,
8980 rustc_ast:: DelimArgs ,
9081 rustc_attr_data_structures:: StrippedCfgItem <rustc_hir:: def_id:: DefIndex >,
9182 rustc_attr_data_structures:: ConstStability ,
@@ -96,7 +87,6 @@ trivially_parameterized_over_tcx! {
9687 rustc_hir:: Defaultness ,
9788 rustc_hir:: Safety ,
9889 rustc_hir:: CoroutineKind ,
99- rustc_hir:: IsAsync ,
10090 rustc_hir:: LangItem ,
10191 rustc_hir:: def:: DefKind ,
10292 rustc_hir:: def:: DocLinkResMap ,
@@ -106,7 +96,6 @@ trivially_parameterized_over_tcx! {
10696 rustc_hir:: OpaqueTyOrigin <rustc_hir:: def_id:: DefId >,
10797 rustc_hir:: PreciseCapturingArgKind <Symbol , Symbol >,
10898 rustc_index:: bit_set:: DenseBitSet <u32 >,
109- rustc_index:: bit_set:: FiniteBitSet <u32 >,
11099 rustc_session:: cstore:: ForeignModule ,
111100 rustc_session:: cstore:: LinkagePreference ,
112101 rustc_session:: cstore:: NativeLib ,
@@ -117,7 +106,6 @@ trivially_parameterized_over_tcx! {
117106 rustc_span:: SourceFile ,
118107 rustc_span:: Span ,
119108 rustc_span:: Symbol ,
120- rustc_span:: def_id:: DefPathHash ,
121109 rustc_span:: hygiene:: SyntaxContextKey ,
122110 rustc_span:: Ident ,
123111 rustc_type_ir:: Variance ,
@@ -148,7 +136,6 @@ parameterized_over_tcx! {
148136 ty:: ConstConditions ,
149137 ty:: TraitRef ,
150138 ty:: Const ,
151- ty:: Predicate ,
152139 ty:: Clause ,
153140 ty:: ClauseKind ,
154141 ty:: ImplTraitHeader ,
0 commit comments