Skip to content

Commit 47e74a9

Browse files
authored
Rollup merge of #79516 - jyn514:cleanup-trait-solver, r=Aaron1011
Remove unnecessary `mut` binding Found while fiddling around with #77459.
2 parents f0e41ce + 870a041 commit 47e74a9

File tree

1 file changed

+1
-2
lines changed
  • compiler/rustc_trait_selection/src/traits/select

1 file changed

+1
-2
lines changed

compiler/rustc_trait_selection/src/traits/select/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -833,11 +833,10 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
833833
/// - it also appears in the backtrace at some position `X`,
834834
/// - all the predicates at positions `X..` between `X` and the top are
835835
/// also defaulted traits.
836-
pub fn coinductive_match<I>(&mut self, cycle: I) -> bool
836+
pub fn coinductive_match<I>(&mut self, mut cycle: I) -> bool
837837
where
838838
I: Iterator<Item = ty::Predicate<'tcx>>,
839839
{
840-
let mut cycle = cycle;
841840
cycle.all(|predicate| self.coinductive_predicate(predicate))
842841
}
843842

0 commit comments

Comments
 (0)