-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate bootstrap to Clap-based argument parsing #110693
Conversation
(rustbot has picked a reviewer for you, use r? to override) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but I would like to have another pair of eyes.
r? @Mark-Simulacrum
5500dd7
to
0ec586c
Compare
Rebased and preserved the behaviour of |
@bors r+ rollup=never This seems broadly OK to me. I think the compile-time impact is minimal enough for now, we can iterate further if needed. clap is pretty minimal in terms of additional compile times that it itself contributes. |
📌 Commit 8b39d2d4b61b52febd7b2b15e7d1b5d6532420a5 has been approved by It is now in the queue for this repository. |
⌛ Testing commit 8b39d2d4b61b52febd7b2b15e7d1b5d6532420a5 with merge ef5365067f707662ca25b69e14c1a24d5f3ec5da... |
💔 Test failed - checks-actions |
This comment has been minimized.
This comment has been minimized.
Going to try and debug this now |
Clap was parsing |
@bors retry |
Wait actually I think |
☀️ Test successful - checks-actions |
Finished benchmarking commit (70a779c): comparison URL. Overall result: ✅ improvements - no action needed@rustbot label: -perf-regression Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 654.308s -> 653.509s (-0.12%) |
This is some big noise, this PR only touches bootstrap, not Rustc. |
Generate shell completions for bootstrap with Clap Now that rust-lang#110693 has been merged, we can look at generating shell completions for x.py with `clap_complete`. Leaving this as draft for now as I'm not sure of the best way to integration the completion generator. Additionally, the generated completions for zsh are completely broken (will need to be resolved upstream, it doesn't seem to handle subcommands + global arguments well). I don't have Fish installed and would be interested to know how well completions work there. Alternative to rust-lang#107827
Supercedes #108083
I chose to re-do the work rather than rebase the onto the large changes since the original PR. If it's preferred I can instead force-push the original PR to this version.
cc @jyn514 @albertlarsan68