File tree 3 files changed +5
-6
lines changed
compiler/rustc_trait_selection/src/solve
3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ pub(super) enum CandidateSource {
76
76
/// let _y = x.clone();
77
77
/// }
78
78
/// ```
79
- AliasBound ( ) ,
79
+ AliasBound ,
80
80
}
81
81
82
82
pub ( super ) trait GoalKind < ' tcx > : TypeFoldable < ' tcx > + Copy + Eq {
@@ -340,15 +340,14 @@ impl<'tcx> EvalCtxt<'_, 'tcx> {
340
340
ty:: Alias ( _, alias_ty) => alias_ty,
341
341
} ;
342
342
343
- for ( _ , ( assumption, _) ) in self
343
+ for ( assumption, _) in self
344
344
. tcx ( )
345
345
. bound_explicit_item_bounds ( alias_ty. def_id )
346
346
. subst_iter_copied ( self . tcx ( ) , alias_ty. substs )
347
- . enumerate ( )
348
347
{
349
348
match G :: consider_assumption ( self , goal, assumption) {
350
349
Ok ( result) => {
351
- candidates. push ( Candidate { source : CandidateSource :: AliasBound ( ) , result } )
350
+ candidates. push ( Candidate { source : CandidateSource :: AliasBound , result } )
352
351
}
353
352
Err ( NoSolution ) => ( ) ,
354
353
}
Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ impl<'tcx> EvalCtxt<'_, 'tcx> {
171
171
( CandidateSource :: Impl ( _) , _)
172
172
| ( CandidateSource :: ParamEnv ( _) , _)
173
173
| ( CandidateSource :: BuiltinImpl , _)
174
- | ( CandidateSource :: AliasBound ( ) , _) => unimplemented ! ( ) ,
174
+ | ( CandidateSource :: AliasBound , _) => unimplemented ! ( ) ,
175
175
}
176
176
}
177
177
}
Original file line number Diff line number Diff line change @@ -320,7 +320,7 @@ impl<'tcx> EvalCtxt<'_, 'tcx> {
320
320
match ( candidate. source , other. source ) {
321
321
( CandidateSource :: Impl ( _) , _)
322
322
| ( CandidateSource :: ParamEnv ( _) , _)
323
- | ( CandidateSource :: AliasBound ( ) , _)
323
+ | ( CandidateSource :: AliasBound , _)
324
324
| ( CandidateSource :: BuiltinImpl , _) => unimplemented ! ( ) ,
325
325
}
326
326
}
You can’t perform that action at this time.
0 commit comments