Commit 6e98ed9
authored
Rollup merge of rust-lang#53395 - varkor:__Nonexhaustive-to-non_exhaustive, r=shepmaster
Use #[non_exhaustive] on internal enums
This replaces `__Nonexhaustive` variants (and variants thereof) with `#[non_exhaustive]`. These were mostly unstable previously, with the exception of the `cloudabi` enums and `Level` in proc_macro: these were `#[doc(hidden)]`, so clearly intended not to be used directly. It should be safe to replace all of these.File tree
10 files changed
+15
-56
lines changed- src
- doc/unstable-book/src/library-features
- libcore
- sync
- libproc_macro
- libstd
- io
- sys/cloudabi/abi
10 files changed
+15
-56
lines changedLines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 0 additions & 5 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| 123 | + | |
123 | 124 | | |
124 | 125 | | |
125 | 126 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| 188 | + | |
188 | 189 | | |
189 | 190 | | |
190 | 191 | | |
| |||
256 | 257 | | |
257 | 258 | | |
258 | 259 | | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | 260 | | |
264 | 261 | | |
265 | 262 | | |
| |||
1954 | 1951 | | |
1955 | 1952 | | |
1956 | 1953 | | |
1957 | | - | |
1958 | 1954 | | |
1959 | 1955 | | |
1960 | 1956 | | |
| |||
1966 | 1962 | | |
1967 | 1963 | | |
1968 | 1964 | | |
1969 | | - | |
1970 | 1965 | | |
1971 | 1966 | | |
1972 | 1967 | | |
| |||
1978 | 1973 | | |
1979 | 1974 | | |
1980 | 1975 | | |
1981 | | - | |
1982 | 1976 | | |
1983 | 1977 | | |
1984 | 1978 | | |
| |||
1991 | 1985 | | |
1992 | 1986 | | |
1993 | 1987 | | |
1994 | | - | |
1995 | 1988 | | |
1996 | 1989 | | |
1997 | 1990 | | |
| |||
2004 | 1997 | | |
2005 | 1998 | | |
2006 | 1999 | | |
2007 | | - | |
2008 | 2000 | | |
2009 | 2001 | | |
2010 | 2002 | | |
| |||
2017 | 2009 | | |
2018 | 2010 | | |
2019 | 2011 | | |
2020 | | - | |
2021 | 2012 | | |
2022 | 2013 | | |
2023 | 2014 | | |
| |||
2039 | 2030 | | |
2040 | 2031 | | |
2041 | 2032 | | |
2042 | | - | |
2043 | | - | |
2044 | 2033 | | |
2045 | 2034 | | |
2046 | 2035 | | |
| |||
2065 | 2054 | | |
2066 | 2055 | | |
2067 | 2056 | | |
2068 | | - | |
2069 | | - | |
2070 | 2057 | | |
2071 | 2058 | | |
2072 | 2059 | | |
| |||
2082 | 2069 | | |
2083 | 2070 | | |
2084 | 2071 | | |
2085 | | - | |
2086 | 2072 | | |
2087 | 2073 | | |
2088 | 2074 | | |
| |||
2094 | 2080 | | |
2095 | 2081 | | |
2096 | 2082 | | |
2097 | | - | |
2098 | 2083 | | |
2099 | 2084 | | |
2100 | 2085 | | |
| |||
2106 | 2091 | | |
2107 | 2092 | | |
2108 | 2093 | | |
2109 | | - | |
2110 | 2094 | | |
2111 | 2095 | | |
2112 | 2096 | | |
| |||
2118 | 2102 | | |
2119 | 2103 | | |
2120 | 2104 | | |
2121 | | - | |
2122 | 2105 | | |
2123 | 2106 | | |
2124 | 2107 | | |
| |||
2131 | 2114 | | |
2132 | 2115 | | |
2133 | 2116 | | |
2134 | | - | |
2135 | 2117 | | |
2136 | 2118 | | |
2137 | 2119 | | |
| |||
2144 | 2126 | | |
2145 | 2127 | | |
2146 | 2128 | | |
2147 | | - | |
2148 | 2129 | | |
2149 | 2130 | | |
2150 | 2131 | | |
| |||
2157 | 2138 | | |
2158 | 2139 | | |
2159 | 2140 | | |
2160 | | - | |
2161 | 2141 | | |
2162 | 2142 | | |
2163 | 2143 | | |
| |||
2170 | 2150 | | |
2171 | 2151 | | |
2172 | 2152 | | |
2173 | | - | |
2174 | 2153 | | |
2175 | 2154 | | |
2176 | 2155 | | |
| |||
2260 | 2239 | | |
2261 | 2240 | | |
2262 | 2241 | | |
2263 | | - | |
2264 | 2242 | | |
2265 | 2243 | | |
2266 | 2244 | | |
| |||
2350 | 2328 | | |
2351 | 2329 | | |
2352 | 2330 | | |
2353 | | - | |
2354 | 2331 | | |
2355 | 2332 | | |
2356 | 2333 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
28 | | - | |
29 | | - | |
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
281 | | - | |
282 | 281 | | |
283 | 282 | | |
284 | 283 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| 100 | + | |
100 | 101 | | |
101 | 102 | | |
102 | 103 | | |
| |||
180 | 181 | | |
181 | 182 | | |
182 | 183 | | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | 184 | | |
193 | 185 | | |
194 | 186 | | |
| |||
212 | 204 | | |
213 | 205 | | |
214 | 206 | | |
215 | | - | |
216 | 207 | | |
217 | 208 | | |
218 | 209 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
| 314 | + | |
314 | 315 | | |
315 | 316 | | |
316 | 317 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| 124 | + | |
124 | 125 | | |
125 | 126 | | |
126 | 127 | | |
| |||
140 | 141 | | |
141 | 142 | | |
142 | 143 | | |
143 | | - | |
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| 149 | + | |
149 | 150 | | |
150 | 151 | | |
151 | 152 | | |
| |||
210 | 211 | | |
211 | 212 | | |
212 | 213 | | |
213 | | - | |
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
| 219 | + | |
219 | 220 | | |
220 | 221 | | |
221 | 222 | | |
| |||
232 | 233 | | |
233 | 234 | | |
234 | 235 | | |
235 | | - | |
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
| |||
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
| 270 | + | |
270 | 271 | | |
271 | 272 | | |
272 | 273 | | |
| |||
422 | 423 | | |
423 | 424 | | |
424 | 425 | | |
425 | | - | |
426 | 426 | | |
427 | 427 | | |
428 | 428 | | |
| |||
438 | 438 | | |
439 | 439 | | |
440 | 440 | | |
| 441 | + | |
441 | 442 | | |
442 | 443 | | |
443 | 444 | | |
| |||
463 | 464 | | |
464 | 465 | | |
465 | 466 | | |
466 | | - | |
467 | 467 | | |
468 | 468 | | |
469 | 469 | | |
| |||
530 | 530 | | |
531 | 531 | | |
532 | 532 | | |
| 533 | + | |
533 | 534 | | |
534 | 535 | | |
535 | 536 | | |
| |||
558 | 559 | | |
559 | 560 | | |
560 | 561 | | |
561 | | - | |
562 | 562 | | |
563 | 563 | | |
564 | 564 | | |
| |||
847 | 847 | | |
848 | 848 | | |
849 | 849 | | |
| 850 | + | |
850 | 851 | | |
851 | 852 | | |
852 | 853 | | |
853 | 854 | | |
854 | 855 | | |
855 | | - | |
856 | 856 | | |
857 | 857 | | |
858 | 858 | | |
| |||
878 | 878 | | |
879 | 879 | | |
880 | 880 | | |
| 881 | + | |
881 | 882 | | |
882 | 883 | | |
883 | 884 | | |
| |||
983 | 984 | | |
984 | 985 | | |
985 | 986 | | |
986 | | - | |
987 | 987 | | |
988 | 988 | | |
989 | 989 | | |
| |||
1049 | 1049 | | |
1050 | 1050 | | |
1051 | 1051 | | |
| 1052 | + | |
1052 | 1053 | | |
1053 | 1054 | | |
1054 | 1055 | | |
1055 | 1056 | | |
1056 | 1057 | | |
1057 | 1058 | | |
1058 | 1059 | | |
1059 | | - | |
1060 | 1060 | | |
1061 | 1061 | | |
1062 | 1062 | | |
| |||
0 commit comments