@@ -31,8 +31,7 @@ use crate::ty::{
31
31
self , AdtDef , AdtDefData , AdtKind , Binder , Clause , Clauses , Const , ConstData ,
32
32
GenericParamDefKind , ImplPolarity , List , ListWithCachedTypeInfo , ParamConst , ParamTy , Pattern ,
33
33
PatternKind , PolyExistentialPredicate , PolyFnSig , Predicate , PredicateKind , PredicatePolarity ,
34
- Region , RegionKind , ReprOptions , TraitObjectVisitor , Ty , TyKind , TyVid , TypeVisitable ,
35
- Visibility ,
34
+ Region , RegionKind , ReprOptions , TraitObjectVisitor , Ty , TyKind , TyVid , Visibility ,
36
35
} ;
37
36
use crate :: ty:: { GenericArg , GenericArgs , GenericArgsRef } ;
38
37
use rustc_ast:: { self as ast, attr} ;
@@ -96,9 +95,8 @@ impl<'tcx> Interner for TyCtxt<'tcx> {
96
95
type GenericArg = ty:: GenericArg < ' tcx > ;
97
96
type Term = ty:: Term < ' tcx > ;
98
97
99
- type Binder < T : TypeVisitable < TyCtxt < ' tcx > > > = Binder < ' tcx , T > ;
100
- type BoundVars = & ' tcx List < ty:: BoundVariableKind > ;
101
- type BoundVar = ty:: BoundVariableKind ;
98
+ type BoundVarKinds = & ' tcx List < ty:: BoundVariableKind > ;
99
+ type BoundVarKind = ty:: BoundVariableKind ;
102
100
103
101
type CanonicalVars = CanonicalVarInfos < ' tcx > ;
104
102
type PredefinedOpaques = solve:: PredefinedOpaques < ' tcx > ;
@@ -123,7 +121,6 @@ impl<'tcx> Interner for TyCtxt<'tcx> {
123
121
type Abi = abi:: Abi ;
124
122
125
123
type Const = ty:: Const < ' tcx > ;
126
- type AliasConst = ty:: UnevaluatedConst < ' tcx > ;
127
124
type PlaceholderConst = ty:: PlaceholderConst ;
128
125
type ParamConst = ty:: ParamConst ;
129
126
type BoundConst = ty:: BoundVar ;
@@ -138,15 +135,7 @@ impl<'tcx> Interner for TyCtxt<'tcx> {
138
135
139
136
type ParamEnv = ty:: ParamEnv < ' tcx > ;
140
137
type Predicate = Predicate < ' tcx > ;
141
- type TraitPredicate = ty:: TraitPredicate < ' tcx > ;
142
- type RegionOutlivesPredicate = ty:: RegionOutlivesPredicate < ' tcx > ;
143
- type TypeOutlivesPredicate = ty:: TypeOutlivesPredicate < ' tcx > ;
144
- type ProjectionPredicate = ty:: ProjectionPredicate < ' tcx > ;
145
- type NormalizesTo = ty:: NormalizesTo < ' tcx > ;
146
- type SubtypePredicate = ty:: SubtypePredicate < ' tcx > ;
147
-
148
- type CoercePredicate = ty:: CoercePredicate < ' tcx > ;
149
- type ClosureKind = ty:: ClosureKind ;
138
+ type Clause = Clause < ' tcx > ;
150
139
151
140
type Clauses = ty:: Clauses < ' tcx > ;
152
141
@@ -245,6 +234,10 @@ impl<'tcx> rustc_type_ir::inherent::Abi<TyCtxt<'tcx>> for abi::Abi {
245
234
}
246
235
247
236
impl < ' tcx > rustc_type_ir:: inherent:: Safety < TyCtxt < ' tcx > > for hir:: Safety {
237
+ fn is_safe ( self ) -> bool {
238
+ matches ! ( self , hir:: Safety :: Safe )
239
+ }
240
+
248
241
fn prefix_str ( self ) -> & ' static str {
249
242
self . prefix_str ( )
250
243
}
0 commit comments