@@ -31,8 +31,7 @@ use crate::ty::{
3131 self , AdtDef , AdtDefData , AdtKind , Binder , Clause , Clauses , Const , ConstData ,
3232 GenericParamDefKind , ImplPolarity , List , ListWithCachedTypeInfo , ParamConst , ParamTy , Pattern ,
3333 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 ,
3635} ;
3736use crate :: ty:: { GenericArg , GenericArgs , GenericArgsRef } ;
3837use rustc_ast:: { self as ast, attr} ;
@@ -96,9 +95,8 @@ impl<'tcx> Interner for TyCtxt<'tcx> {
9695 type GenericArg = ty:: GenericArg < ' tcx > ;
9796 type Term = ty:: Term < ' tcx > ;
9897
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 ;
102100
103101 type CanonicalVars = CanonicalVarInfos < ' tcx > ;
104102 type PredefinedOpaques = solve:: PredefinedOpaques < ' tcx > ;
@@ -123,7 +121,6 @@ impl<'tcx> Interner for TyCtxt<'tcx> {
123121 type Abi = abi:: Abi ;
124122
125123 type Const = ty:: Const < ' tcx > ;
126- type AliasConst = ty:: UnevaluatedConst < ' tcx > ;
127124 type PlaceholderConst = ty:: PlaceholderConst ;
128125 type ParamConst = ty:: ParamConst ;
129126 type BoundConst = ty:: BoundVar ;
@@ -138,15 +135,7 @@ impl<'tcx> Interner for TyCtxt<'tcx> {
138135
139136 type ParamEnv = ty:: ParamEnv < ' tcx > ;
140137 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 > ;
150139
151140 type Clauses = ty:: Clauses < ' tcx > ;
152141
@@ -245,6 +234,10 @@ impl<'tcx> rustc_type_ir::inherent::Abi<TyCtxt<'tcx>> for abi::Abi {
245234}
246235
247236impl < ' 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+
248241 fn prefix_str ( self ) -> & ' static str {
249242 self . prefix_str ( )
250243 }
0 commit comments