Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 870a041

Browse files
committed
Remove unnecessary mut binding
1 parent 65ecc48 commit 870a041

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)