1
Fork 0

clippy:: append_instead_of_extend

This commit is contained in:
Matthias Krüger 2021-07-18 00:01:59 +02:00
parent d709e6efef
commit aa74c75d84
3 changed files with 5 additions and 5 deletions

View file

@ -90,8 +90,8 @@ fn dropck_outlives<'tcx>(
// "outlives" represent types/regions that may be touched
// by a destructor.
result.kinds.extend(constraints.outlives.drain(..));
result.overflows.extend(constraints.overflows.drain(..));
result.kinds.append(&mut constraints.outlives);
result.overflows.append(&mut constraints.overflows);
// If we have even one overflow, we should stop trying to evaluate further --
// chances are, the subsequent overflows for this evaluation won't provide useful