Commit 203c876
committed
Auto merge of rust-lang#105046 - scottmcm:vecdeque-vs-vec, r=Mark-Simulacrum
Send `VecDeque::from_iter` via `Vec::from_iter`
Since it's O(1) to convert between them now, might as well reuse the logic.
Mostly for the various specializations it does, but might also save some monomorphization work if, say, people collect slice iterators into both `Vec`s and `VecDeque`s.1 file changed
+12
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2699 | 2699 | | |
2700 | 2700 | | |
2701 | 2701 | | |
| 2702 | + | |
2702 | 2703 | | |
2703 | | - | |
2704 | | - | |
2705 | | - | |
2706 | | - | |
2707 | | - | |
| 2704 | + | |
| 2705 | + | |
| 2706 | + | |
| 2707 | + | |
| 2708 | + | |
| 2709 | + | |
| 2710 | + | |
| 2711 | + | |
| 2712 | + | |
| 2713 | + | |
2708 | 2714 | | |
2709 | 2715 | | |
2710 | 2716 | | |
| |||
2791 | 2797 | | |
2792 | 2798 | | |
2793 | 2799 | | |
| 2800 | + | |
2794 | 2801 | | |
2795 | 2802 | | |
2796 | 2803 | | |
| |||
0 commit comments