This repository was archived by the owner on May 28, 2025. It is now read-only.
Commit 5b0acfd
authored
Rollup merge of rust-lang#79805 - m-ou-se:iterator-reduce, r=KodrAus
Rename Iterator::fold_first to reduce and stabilize it
This stabilizes `#![feature(iterator_fold_self)]`.
The name for this function (originally `fold_first`) was still an open question, but the discussion on [the tracking issue](rust-lang#68125) seems to have converged to `reduce`.File tree
4 files changed
+22
-15
lines changed- compiler
- rustc_ast/src
- rustc_hir/src
- library/core/src/iter/traits
4 files changed
+22
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
361 | | - | |
| 361 | + | |
362 | 362 | | |
363 | 363 | | |
364 | 364 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2028 | 2028 | | |
2029 | 2029 | | |
2030 | 2030 | | |
2031 | | - | |
| 2031 | + | |
| 2032 | + | |
2032 | 2033 | | |
2033 | 2034 | | |
2034 | 2035 | | |
| |||
2049 | 2050 | | |
2050 | 2051 | | |
2051 | 2052 | | |
| 2053 | + | |
| 2054 | + | |
| 2055 | + | |
2052 | 2056 | | |
2053 | 2057 | | |
2054 | 2058 | | |
| |||
2104 | 2108 | | |
2105 | 2109 | | |
2106 | 2110 | | |
| 2111 | + | |
| 2112 | + | |
2107 | 2113 | | |
2108 | 2114 | | |
2109 | 2115 | | |
| |||
2120 | 2126 | | |
2121 | 2127 | | |
2122 | 2128 | | |
2123 | | - | |
2124 | | - | |
2125 | | - | |
2126 | | - | |
| 2129 | + | |
| 2130 | + | |
| 2131 | + | |
| 2132 | + | |
| 2133 | + | |
| 2134 | + | |
| 2135 | + | |
| 2136 | + | |
| 2137 | + | |
2127 | 2138 | | |
2128 | 2139 | | |
2129 | 2140 | | |
| |||
2132 | 2143 | | |
2133 | 2144 | | |
2134 | 2145 | | |
2135 | | - | |
2136 | | - | |
2137 | 2146 | | |
2138 | 2147 | | |
2139 | 2148 | | |
2140 | 2149 | | |
2141 | | - | |
| 2150 | + | |
2142 | 2151 | | |
2143 | 2152 | | |
2144 | 2153 | | |
| |||
2149 | 2158 | | |
2150 | 2159 | | |
2151 | 2160 | | |
2152 | | - | |
2153 | | - | |
| 2161 | + | |
| 2162 | + | |
2154 | 2163 | | |
2155 | 2164 | | |
2156 | 2165 | | |
| |||
2647 | 2656 | | |
2648 | 2657 | | |
2649 | 2658 | | |
2650 | | - | |
| 2659 | + | |
2651 | 2660 | | |
2652 | 2661 | | |
2653 | 2662 | | |
| |||
2707 | 2716 | | |
2708 | 2717 | | |
2709 | 2718 | | |
2710 | | - | |
| 2719 | + | |
2711 | 2720 | | |
2712 | 2721 | | |
2713 | 2722 | | |
| |||
0 commit comments