This repository was archived by the owner on May 28, 2025. It is now read-only.
Commit 35e6e4c
committed
Auto merge of rust-lang#127321 - Kobzol:bootstrap-cmd-refactor-4, r=onur-ozkan
Bootstrap command refactoring: quality-of-life improvements (step 4)
Continuation of rust-lang#127120.
This PR simply introduce two new functions (`BootstrapCommand:run` and `command`) that make it a bit easier to use commands in bootstrap. It also adds several `#[must_use]` annotations. This shouldn't (hopefully) have any effect on behavior.
Especially the first commit IMO makes any code that runs commands more readable, and allows using the API in a fluent way, without needing to jump back and forth between the command and the `Build(er)`.
Tracking issue: rust-lang#126819
r? `@onur-ozkan`File tree
23 files changed
+362
-367
lines changed- src/bootstrap/src
- core
- build_steps
- utils
23 files changed
+362
-367
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
773 | 773 | | |
774 | 774 | | |
775 | 775 | | |
776 | | - | |
| 776 | + | |
777 | 777 | | |
778 | 778 | | |
779 | 779 | | |
780 | 780 | | |
781 | 781 | | |
782 | | - | |
783 | | - | |
784 | | - | |
785 | | - | |
786 | | - | |
787 | | - | |
788 | | - | |
789 | | - | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
790 | 789 | | |
791 | 790 | | |
792 | 791 | | |
| |||
1488 | 1487 | | |
1489 | 1488 | | |
1490 | 1489 | | |
1491 | | - | |
| 1490 | + | |
1492 | 1491 | | |
1493 | 1492 | | |
1494 | | - | |
| 1493 | + | |
1495 | 1494 | | |
1496 | 1495 | | |
1497 | 1496 | | |
| |||
1836 | 1835 | | |
1837 | 1836 | | |
1838 | 1837 | | |
1839 | | - | |
1840 | | - | |
1841 | | - | |
| 1838 | + | |
| 1839 | + | |
1842 | 1840 | | |
1843 | 1841 | | |
1844 | 1842 | | |
| |||
2163 | 2161 | | |
2164 | 2162 | | |
2165 | 2163 | | |
2166 | | - | |
| 2164 | + | |
2167 | 2165 | | |
2168 | 2166 | | |
2169 | 2167 | | |
| |||
0 commit comments