Commit 36f5141
committed
Use
This replaces the manual `Vec::extend_with` implementation with
`iter::repeat_n` and `Vec::extend_trusted`. This simplifies the
code and gets LLVM to remove the special case for the last element
when `T` is trivial to clone.iter::repeat_n to implement Vec::extend_with
1 parent b4f1098 commit 36f5141
1 file changed
+3
-26
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3445 | 3445 | | |
3446 | 3446 | | |
3447 | 3447 | | |
3448 | | - | |
3449 | 3448 | | |
| 3449 | + | |
| 3450 | + | |
3450 | 3451 | | |
3451 | | - | |
3452 | | - | |
3453 | | - | |
3454 | | - | |
3455 | | - | |
3456 | | - | |
3457 | | - | |
3458 | | - | |
3459 | | - | |
3460 | | - | |
3461 | | - | |
3462 | | - | |
3463 | | - | |
3464 | | - | |
3465 | | - | |
3466 | | - | |
3467 | | - | |
3468 | | - | |
3469 | | - | |
3470 | | - | |
3471 | | - | |
3472 | | - | |
3473 | | - | |
3474 | | - | |
3475 | | - | |
| 3452 | + | |
3476 | 3453 | | |
3477 | 3454 | | |
3478 | 3455 | | |
| |||
0 commit comments