Commit 17fc02b
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 17fc02b
1 file changed
+1
-25
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3448 | 3448 | | |
3449 | 3449 | | |
3450 | 3450 | | |
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 | | - | |
| 3451 | + | |
3476 | 3452 | | |
3477 | 3453 | | |
3478 | 3454 | | |
| |||
0 commit comments