avoid cloning and then iterating
This commit is contained in:
parent
75b7e52e92
commit
4eebcb9910
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