@@ -17,7 +17,7 @@ use rustc_type_ir::solve::{
1717 RerunNonErased , RerunReason , RerunResultExt , SmallCopySet , TyOrConstInferVar ,
1818} ;
1919use rustc_type_ir:: {
20- self as ty, CanonicalVarValues , ClauseKind , InferCtxtLike , Interner , MayBeErased ,
20+ self as ty, CanonicalVarValues , ClauseKind , Const , InferCtxtLike , Interner , MayBeErased ,
2121 OpaqueTypeKey , PredicateKind , PredicateProxy , Region , RegionVid , TypeFoldable ,
2222 TypeSuperVisitable , TypeVisitable , TypeVisitableExt , TypeVisitor , TypingMode , max_universe,
2323} ;
@@ -1057,7 +1057,7 @@ where
10571057 ty
10581058 }
10591059
1060- pub ( super ) fn next_const_infer ( & mut self ) -> I :: Const {
1060+ pub ( super ) fn next_const_infer ( & mut self ) -> Const < I > {
10611061 let ct = self . delegate . next_const_infer ( ) ;
10621062 self . inspect . add_var_value ( ct) ;
10631063 ct
@@ -1154,7 +1154,7 @@ where
11541154 ControlFlow :: Continue ( ( ) )
11551155 }
11561156
1157- fn visit_const ( & mut self , c : I :: Const ) -> Self :: Result {
1157+ fn visit_const ( & mut self , c : Const < I > ) -> Self :: Result {
11581158 match c. kind ( ) {
11591159 ty:: ConstKind :: Infer ( ty:: InferConst :: Var ( vid) ) => {
11601160 if let ty:: TermKind :: Const ( term) = self . term . kind ( )
@@ -1409,7 +1409,7 @@ where
14091409 & mut self ,
14101410 param_env : I :: ParamEnv ,
14111411 alias_const : ty:: AliasConst < I > ,
1412- ) -> Result < Option < I :: Const > , NoSolutionOrRerunNonErased > {
1412+ ) -> Result < Option < Const < I > > , NoSolutionOrRerunNonErased > {
14131413 if self . typing_mode ( ) . is_erased_not_coherence ( ) {
14141414 match self . opaque_accesses . rerun_always ( RerunReason :: EvaluateConst ) ? { }
14151415 }
@@ -1470,7 +1470,7 @@ where
14701470 & mut self ,
14711471 src : I :: Ty ,
14721472 dst : I :: Ty ,
1473- assume : I :: Const ,
1473+ assume : Const < I > ,
14741474 ) -> Result < Certainty , NoSolution > {
14751475 self . delegate . is_transmutable ( dst, src, assume)
14761476 }
@@ -1760,7 +1760,7 @@ fn filter_irrelevant_region_constraints<D, I>(
17601760 }
17611761 t. super_visit_with ( self ) ;
17621762 }
1763- fn visit_const ( & mut self , c : I :: Const ) {
1763+ fn visit_const ( & mut self , c : Const < I > ) {
17641764 // The same goes for consts.
17651765 if !c. has_infer_regions ( ) {
17661766 return ;
0 commit comments