@@ -585,18 +585,16 @@ where
585
585
586
586
#[ instrument( level = "trace" , skip( self ) ) ]
587
587
pub ( super ) fn add_normalizes_to_goal ( & mut self , mut goal : Goal < I , ty:: NormalizesTo < I > > ) {
588
- goal. predicate = goal
589
- . predicate
590
- . fold_with ( & mut ReplaceAliasWithInfer :: new ( self , goal. param_env ) ) ;
588
+ goal. predicate =
589
+ goal. predicate . fold_with ( & mut ReplaceAliasWithInfer :: new ( self , goal. param_env ) ) ;
591
590
self . inspect . add_normalizes_to_goal ( self . delegate , self . max_input_universe , goal) ;
592
591
self . nested_goals . normalizes_to_goals . push ( goal) ;
593
592
}
594
593
595
594
#[ instrument( level = "debug" , skip( self ) ) ]
596
595
pub ( super ) fn add_goal ( & mut self , source : GoalSource , mut goal : Goal < I , I :: Predicate > ) {
597
- goal. predicate = goal
598
- . predicate
599
- . fold_with ( & mut ReplaceAliasWithInfer :: new ( self , goal. param_env ) ) ;
596
+ goal. predicate =
597
+ goal. predicate . fold_with ( & mut ReplaceAliasWithInfer :: new ( self , goal. param_env ) ) ;
600
598
self . inspect . add_goal ( self . delegate , self . max_input_universe , source, goal) ;
601
599
self . nested_goals . goals . push ( ( source, goal) ) ;
602
600
}
@@ -681,7 +679,7 @@ where
681
679
if self . cache . contains ( & t) {
682
680
return ControlFlow :: Continue ( ( ) ) ;
683
681
}
684
-
682
+
685
683
match t. kind ( ) {
686
684
ty:: Infer ( ty:: TyVar ( vid) ) => {
687
685
if let ty:: TermKind :: Ty ( term) = self . term . kind ( ) {
@@ -1035,7 +1033,7 @@ impl<'me, 'a, D, I> ReplaceAliasWithInfer<'me, 'a, D, I>
1035
1033
where
1036
1034
D : SolverDelegate < Interner = I > ,
1037
1035
I : Interner ,
1038
- {
1036
+ {
1039
1037
fn new ( ecx : & ' me mut EvalCtxt < ' a , D > , param_env : I :: ParamEnv ) -> Self {
1040
1038
ReplaceAliasWithInfer { ecx, param_env, cache : Default :: default ( ) }
1041
1039
}
0 commit comments