Rollup merge of #79516 - jyn514:cleanup-trait-solver, r=Aaron1011
Remove unnecessary `mut` binding Found while fiddling around with https://github.com/rust-lang/rust/issues/77459.
This commit is contained in:
commit
47e74a9a51
@ -833,11 +833,10 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
|
||||
/// - it also appears in the backtrace at some position `X`,
|
||||
/// - all the predicates at positions `X..` between `X` and the top are
|
||||
/// also defaulted traits.
|
||||
pub fn coinductive_match<I>(&mut self, cycle: I) -> bool
|
||||
pub fn coinductive_match<I>(&mut self, mut cycle: I) -> bool
|
||||
where
|
||||
I: Iterator<Item = ty::Predicate<'tcx>>,
|
||||
{
|
||||
let mut cycle = cycle;
|
||||
cycle.all(|predicate| self.coinductive_predicate(predicate))
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user