This repository was archived by the owner on May 28, 2025. It is now read-only.
Commit 09cd00f
committed
Auto merge of rust-lang#124401 - oli-obk:some_hir_cleanups, r=cjgillot
Some hir cleanups
It seemed odd to not put `AnonConst` in the arena, compared with the other types that we did put into an arena. This way we can also give it a `Span` without growing a lot of other HIR data structures because of the extra field.
r? compilerFile tree
16 files changed
+89
-87
lines changed- compiler
- rustc_ast_lowering/src
- rustc_hir_analysis/src
- collect
- rustc_hir_pretty/src
- rustc_hir_typeck/src
- fn_ctxt
- rustc_hir/src
- rustc_lint/src
- rustc_middle/src/hir/map
- rustc_mir_build/src/build
- src
- librustdoc/clean
- tools/clippy/clippy_utils/src
- tests/ui/stats
16 files changed
+89
-87
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
376 | 376 | | |
377 | 377 | | |
378 | 378 | | |
379 | | - | |
| 379 | + | |
380 | 380 | | |
381 | 381 | | |
382 | 382 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1589 | 1589 | | |
1590 | 1590 | | |
1591 | 1591 | | |
1592 | | - | |
| 1592 | + | |
1593 | 1593 | | |
1594 | 1594 | | |
1595 | 1595 | | |
1596 | | - | |
| 1596 | + | |
| 1597 | + | |
1597 | 1598 | | |
1598 | 1599 | | |
1599 | 1600 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1178 | 1178 | | |
1179 | 1179 | | |
1180 | 1180 | | |
1181 | | - | |
1182 | | - | |
1183 | | - | |
1184 | | - | |
| 1181 | + | |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
1185 | 1189 | | |
1186 | 1190 | | |
1187 | 1191 | | |
1188 | | - | |
1189 | 1192 | | |
1190 | 1193 | | |
1191 | 1194 | | |
| |||
1197 | 1200 | | |
1198 | 1201 | | |
1199 | 1202 | | |
1200 | | - | |
1201 | 1203 | | |
1202 | 1204 | | |
1203 | 1205 | | |
| |||
2315 | 2317 | | |
2316 | 2318 | | |
2317 | 2319 | | |
2318 | | - | |
| 2320 | + | |
2319 | 2321 | | |
2320 | 2322 | | |
2321 | 2323 | | |
| |||
2338 | 2340 | | |
2339 | 2341 | | |
2340 | 2342 | | |
2341 | | - | |
2342 | | - | |
| 2343 | + | |
| 2344 | + | |
2343 | 2345 | | |
2344 | 2346 | | |
2345 | 2347 | | |
2346 | | - | |
| 2348 | + | |
| 2349 | + | |
2347 | 2350 | | |
2348 | 2351 | | |
2349 | 2352 | | |
| |||
2650 | 2653 | | |
2651 | 2654 | | |
2652 | 2655 | | |
2653 | | - | |
2654 | | - | |
| 2656 | + | |
2655 | 2657 | | |
2656 | 2658 | | |
2657 | 2659 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
232 | | - | |
233 | | - | |
234 | | - | |
| 232 | + | |
| 233 | + | |
235 | 234 | | |
236 | 235 | | |
237 | 236 | | |
| |||
252 | 251 | | |
253 | 252 | | |
254 | 253 | | |
255 | | - | |
| 254 | + | |
256 | 255 | | |
257 | 256 | | |
258 | 257 | | |
| |||
261 | 260 | | |
262 | 261 | | |
263 | 262 | | |
264 | | - | |
| 263 | + | |
265 | 264 | | |
266 | 265 | | |
267 | 266 | | |
| |||
490 | 489 | | |
491 | 490 | | |
492 | 491 | | |
493 | | - | |
| 492 | + | |
494 | 493 | | |
495 | 494 | | |
496 | 495 | | |
| |||
1562 | 1561 | | |
1563 | 1562 | | |
1564 | 1563 | | |
1565 | | - | |
| 1564 | + | |
1566 | 1565 | | |
1567 | | - | |
| 1566 | + | |
1568 | 1567 | | |
1569 | 1568 | | |
1570 | | - | |
| 1569 | + | |
1571 | 1570 | | |
1572 | 1571 | | |
1573 | 1572 | | |
| |||
1590 | 1589 | | |
1591 | 1590 | | |
1592 | 1591 | | |
| 1592 | + | |
1593 | 1593 | | |
1594 | 1594 | | |
1595 | 1595 | | |
| |||
2002 | 2002 | | |
2003 | 2003 | | |
2004 | 2004 | | |
2005 | | - | |
| 2005 | + | |
2006 | 2006 | | |
2007 | 2007 | | |
2008 | 2008 | | |
| |||
2382 | 2382 | | |
2383 | 2383 | | |
2384 | 2384 | | |
2385 | | - | |
| 2385 | + | |
2386 | 2386 | | |
2387 | 2387 | | |
2388 | 2388 | | |
| |||
2391 | 2391 | | |
2392 | 2392 | | |
2393 | 2393 | | |
2394 | | - | |
2395 | | - | |
| 2394 | + | |
| 2395 | + | |
2396 | 2396 | | |
2397 | 2397 | | |
2398 | 2398 | | |
| |||
2683 | 2683 | | |
2684 | 2684 | | |
2685 | 2685 | | |
2686 | | - | |
| 2686 | + | |
2687 | 2687 | | |
2688 | 2688 | | |
2689 | 2689 | | |
| |||
2712 | 2712 | | |
2713 | 2713 | | |
2714 | 2714 | | |
2715 | | - | |
| 2715 | + | |
2716 | 2716 | | |
2717 | 2717 | | |
2718 | 2718 | | |
| |||
2745 | 2745 | | |
2746 | 2746 | | |
2747 | 2747 | | |
2748 | | - | |
| 2748 | + | |
2749 | 2749 | | |
2750 | 2750 | | |
2751 | | - | |
| 2751 | + | |
2752 | 2752 | | |
2753 | 2753 | | |
2754 | 2754 | | |
| |||
2950 | 2950 | | |
2951 | 2951 | | |
2952 | 2952 | | |
2953 | | - | |
| 2953 | + | |
2954 | 2954 | | |
2955 | 2955 | | |
2956 | 2956 | | |
| |||
3479 | 3479 | | |
3480 | 3480 | | |
3481 | 3481 | | |
3482 | | - | |
3483 | | - | |
3484 | | - | |
| 3482 | + | |
3485 | 3483 | | |
3486 | 3484 | | |
3487 | 3485 | | |
3488 | 3486 | | |
3489 | | - | |
3490 | | - | |
| 3487 | + | |
| 3488 | + | |
3491 | 3489 | | |
3492 | 3490 | | |
3493 | 3491 | | |
| |||
3632 | 3630 | | |
3633 | 3631 | | |
3634 | 3632 | | |
3635 | | - | |
3636 | | - | |
3637 | | - | |
| 3633 | + | |
3638 | 3634 | | |
3639 | 3635 | | |
3640 | 3636 | | |
| |||
3871 | 3867 | | |
3872 | 3868 | | |
3873 | 3869 | | |
3874 | | - | |
| 3870 | + | |
3875 | 3871 | | |
3876 | 3872 | | |
3877 | 3873 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
338 | 338 | | |
339 | 339 | | |
340 | 340 | | |
341 | | - | |
| 341 | + | |
342 | 342 | | |
343 | 343 | | |
344 | 344 | | |
| |||
703 | 703 | | |
704 | 704 | | |
705 | 705 | | |
706 | | - | |
| 706 | + | |
707 | 707 | | |
708 | 708 | | |
709 | 709 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
| 146 | + | |
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
| 137 | + | |
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
| 155 | + | |
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | | - | |
| 197 | + | |
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
205 | | - | |
| 205 | + | |
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
| 229 | + | |
234 | 230 | | |
235 | 231 | | |
236 | 232 | | |
237 | 233 | | |
238 | 234 | | |
239 | 235 | | |
240 | 236 | | |
241 | | - | |
| 237 | + | |
242 | 238 | | |
243 | 239 | | |
244 | 240 | | |
| |||
250 | 246 | | |
251 | 247 | | |
252 | 248 | | |
253 | | - | |
| 249 | + | |
254 | 250 | | |
255 | 251 | | |
256 | 252 | | |
| |||
278 | 274 | | |
279 | 275 | | |
280 | 276 | | |
281 | | - | |
| 277 | + | |
282 | 278 | | |
283 | 279 | | |
284 | 280 | | |
| |||
0 commit comments