avoid collecting into vecs in some places
This commit is contained in:
parent
2e3581bca9
commit
7a48987006
5 changed files with 20 additions and 33 deletions
|
@ -57,7 +57,7 @@ impl<'tcx> ObligationStorage<'tcx> {
|
|||
|
||||
fn take_pending(&mut self) -> Vec<PredicateObligation<'tcx>> {
|
||||
let mut obligations = mem::take(&mut self.pending);
|
||||
obligations.extend(self.overflowed.drain(..));
|
||||
obligations.append(&mut self.overflowed);
|
||||
obligations
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue