clippy:: append_instead_of_extend
This commit is contained in:
parent
d709e6efef
commit
aa74c75d84
3 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue