Uh oh!
There was an error while loading. Please reload this page.
Migrate bootstrap to Clap-based argument parsing - #110693
Conversation
rustbot
commented
Apr 22, 2023
(rustbot has picked a reviewer for you, use r? to override) |
albertlarsan68
left a comment
There was a problem hiding this comment.
LGTM, but I would like to have another pair of eyes.
r? @Mark-Simulacrum
clubby789
commented
May 5, 2023
Rebased and preserved the behaviour of |
Mark-Simulacrum
commented
May 6, 2023
@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. |
bors
commented
May 6, 2023
📌 Commit 8b39d2d4b61b52febd7b2b15e7d1b5d6532420a5 has been approved by It is now in the queue for this repository. |
bors
commented
May 6, 2023
⌛ Testing commit 8b39d2d4b61b52febd7b2b15e7d1b5d6532420a5 with merge ef5365067f707662ca25b69e14c1a24d5f3ec5da... |
bors
commented
May 6, 2023
💔 Test failed - checks-actions |
This comment has been minimized.
This comment has been minimized.
clubby789
commented
May 6, 2023
Going to try and debug this now |
clubby789
commented
May 6, 2023
Clap was parsing |
Noratrieb
commented
May 6, 2023
@bors retry |
Noratrieb
commented
May 6, 2023
Wait actually I think |
bors
commented
May 6, 2023
bors
commented
May 7, 2023
bors
commented
May 7, 2023
☀️ Test successful - checks-actions |
rust-timer
commented
May 7, 2023
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%) |
albertlarsan68
commented
May 9, 2023
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