avoid collecting into vecs in some places
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user