Auto merge of #100497 - kadiwa4:remove_clone_into_iter, r=cjgillot
Avoid cloning a collection only to iterate over it `@rustbot` label: +C-cleanup
This commit is contained in:
commit
ce36e88256
12 changed files with 31 additions and 31 deletions
|
@ -341,7 +341,7 @@ impl<'tcx> AutoTraitFinder<'tcx> {
|
|||
}
|
||||
}
|
||||
|
||||
let obligations = impl_source.clone().nested_obligations().into_iter();
|
||||
let obligations = impl_source.borrow_nested_obligations().iter().cloned();
|
||||
|
||||
if !self.evaluate_nested_obligations(
|
||||
ty,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue