-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Re-add help_on_error for download-ci-llvm #97519
Conversation
(rust-highfive 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.
Thanks for tackling this! Can you please squash the commits once you've addressed the review comments? There are instructions at https://rustc-dev-guide.rust-lang.org/git.html#advanced-rebasing.
@@ -197,8 +197,6 @@ def run(args, verbose=False, exception=False, is_bootstrap=False, help_on_error= | |||
code = ret.wait() | |||
if code != 0: | |||
err = "failed to run: " + ' '.join(args) | |||
if help_on_error is not None: | |||
err += "\n" + help_on_error | |||
if verbose or exception: |
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.
Please also remove this from the function parameters (for run, and for all functions which call it, recursively)
src/bootstrap/native.rs
Outdated
@@ -179,7 +179,22 @@ fn download_ci_llvm(builder: &Builder<'_>, llvm_sha: &str) { | |||
let filename = format!("rust-dev-nightly-{}.tar.xz", builder.build.build.triple); | |||
let tarball = rustc_cache.join(&filename); | |||
if !tarball.exists() { | |||
builder.download_component(base, &format!("{}/{}", url, filename), &tarball); | |||
if !tarball.exists() { |
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.
This check looks duplicated - no need to check it twice.
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.
oops - that was an accident, thanks for the catch!
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.
Looks great once you squash the commits, thanks!
Remove dead code Missing } ./x.py fmt Remove duplicate check Recursively remove all usage of help_on_error
a01a055
to
c0f18f9
Compare
@bors r=jyn514 |
📌 Commit c0f18f9 has been approved by |
Rollup of 6 pull requests Successful merges: - rust-lang#97494 (Use Box::new() instead of box syntax in library tests) - rust-lang#97499 (Remove "sys isn't exported yet" phrase) - rust-lang#97504 (Ensure source file present when calculating max line number) - rust-lang#97519 (Re-add help_on_error for download-ci-llvm) - rust-lang#97531 (Note pattern mismatch coming from `for` loop desugaring) - rust-lang#97545 (Reword safety comments in core/hash/sip.rs) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Closes #97503
help_on_error
fordownload_component()
and the downstream functionsbootstrap.py
Thanks @jyn514 for the helpful tips!
(first contribution here, please let me know if I missed anything out!)