-
Notifications
You must be signed in to change notification settings - Fork 13.8k
Commit 3e6a286
authored
Rollup merge of #141027 - onur-ozkan:simpler-rustfmt-initialization, r=albertlarsan68
remove `RustfmtState` to reduce `initial_rustfmt` complexity
The current use of `RustfmtState` doesn't serve its main purpose as it never does the lazy evaulation since `Build::build` forces it to be ready on the early stage. If we want rustfmt to be ready on the early stage, we don't need to have `RustfmtState` complexity at all.File tree
5 files changed
+12
-50
lines changed- src/bootstrap/src
- core
- build_steps
- config
5 files changed
+12
-50
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
58 | 58 |
| |
59 | 59 |
| |
60 | 60 |
| |
61 | - | ||
61 | + | ||
62 | 62 |
| |
63 | 63 |
| |
64 | 64 |
| |
| |||
243 | 243 |
| |
244 | 244 |
| |
245 | 245 |
| |
246 | - | ||
246 | + | ||
247 | 247 |
| |
248 | 248 |
| |
249 | 249 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1102 | 1102 |
| |
1103 | 1103 |
| |
1104 | 1104 |
| |
1105 | - | ||
1105 | + | ||
1106 | 1106 |
| |
1107 | 1107 |
| |
1108 | 1108 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
6 | - | ||
6 | + | ||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
| |||
406 | 406 |
| |
407 | 407 |
| |
408 | 408 |
| |
409 | - | ||
410 | - | ||
411 | - | ||
412 | - | ||
413 | - | ||
409 | + | ||
414 | 410 |
| |
415 | 411 |
| |
416 | 412 |
| |
| |||
428 | 424 |
| |
429 | 425 |
| |
430 | 426 |
| |
431 | - | ||
432 | - | ||
433 | - | ||
434 | - | ||
435 | - | ||
436 | - | ||
437 | - | ||
438 | - | ||
439 | - | ||
440 | 427 |
| |
441 | 428 |
| |
442 | 429 |
| |
| |||
2448 | 2435 |
| |
2449 | 2436 |
| |
2450 | 2437 |
| |
2451 | - | ||
2452 | - | ||
2453 | - | ||
2454 | - | ||
2455 | - | ||
2456 | - | ||
2457 | - | ||
2438 | + | ||
2439 | + | ||
2458 | 2440 |
| |
2459 | 2441 |
| |
2460 | 2442 |
| |
| |||
2851 | 2833 |
| |
2852 | 2834 |
| |
2853 | 2835 |
| |
2854 | - | ||
2855 | - | ||
2856 | - | ||
2857 | - | ||
2858 | - | ||
2859 | - | ||
2860 | - | ||
2861 | - | ||
2862 | - | ||
2863 | - | ||
2864 | - | ||
2865 | - | ||
2866 | - | ||
2867 | - | ||
2868 | - | ||
2869 | - | ||
2870 | - | ||
2871 | - | ||
2872 | - | ||
2873 | 2836 |
| |
2874 | 2837 |
| |
2875 | 2838 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
446 | 446 |
| |
447 | 447 |
| |
448 | 448 |
| |
449 | - | ||
449 | + | ||
450 | 450 |
| |
451 | 451 |
| |
452 | 452 |
| |
| |||
455 | 455 |
| |
456 | 456 |
| |
457 | 457 |
| |
458 | + | ||
459 | + | ||
460 | + | ||
461 | + | ||
458 | 462 |
| |
459 | 463 |
| |
460 | 464 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
325 | 325 |
| |
326 | 326 |
| |
327 | 327 |
| |
328 | - | ||
329 | 328 |
| |
330 | 329 |
| |
331 | 330 |
| |
| |||
614 | 613 |
| |
615 | 614 |
| |
616 | 615 |
| |
617 | - | ||
618 | - | ||
619 | - | ||
620 | - | ||
621 | 616 |
| |
622 | 617 |
| |
623 | 618 |
| |
|
0 commit comments