Skip to content

rustbuild: with --no-fail-fast, report the specific commands that failed - #44680

Merged
bors merged 1 commit into
rust-lang:masterfrom
infinity0:master
Sep 19, 2017
Merged

bors merged 1 commit into
rust-lang:masterfrom
infinity0:master

Conversation

@infinity0

Copy link
Copy Markdown
Contributor

I'm not sure this is the most elegant way of doing it, I'm still a bit of a rust noob. I tried Vec<Command> and keeping Cell instead of RefCell but couldn't fight my way past the borrow errors, this was the first arrangement that I could make work.

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @alexcrichton

(rust_highfive has picked a reviewer for you, use r? to override)

@infinity0

Copy link
Copy Markdown
Contributor Author

r? @Mark-Simulacrum

cc @cuviper

@Mark-Simulacrum

Copy link
Copy Markdown
Member

Looks good to me. @bors r+ p=1 (regression)

@bors

bors commented Sep 18, 2017

Copy link
Copy Markdown
Collaborator

📌 Commit 435a0ea has been approved by Mark-Simulacrum

Comment thread src/bootstrap/check.rs Outdated

@kennytm kennytm Sep 18, 2017 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Could not build bootstrap. Please remove the &mut.

[00:01:54] error: variable does not need to be mutable
[00:01:54]   --> /checkout/src/bootstrap/check.rs:71:17
[00:01:54]    |
[00:01:54] 71 |             let mut failures = &mut build.delayed_failures.borrow_mut();
[00:01:54]    |                 ^^^^^^^^^^^^
[00:01:54]    |
[00:01:54] note: lint level defined here
[00:01:54]   --> /checkout/src/bootstrap/lib.rs:116:9
[00:01:54]    |
[00:01:54] 116| #![deny(warnings)]
[00:01:54]    |         ^^^^^^^^
[00:01:54]    = note: #[deny(unused_mut)] implied by #[deny(warnings)]
[00:01:54] 
[00:01:54] error: variable does not need to be mutable
[00:01:54]   --> /checkout/src/bootstrap/check.rs:86:17
[00:01:54]    |
[00:01:54] 86 |             let mut failures = &mut build.delayed_failures.borrow_mut();
[00:01:54]    |                 ^^^^^^^^^^^^
[00:01:54] 
[00:01:54] error: aborting due to 2 previous errors
[00:01:54] 
[00:01:54] error: Could not compile `bootstrap`.

Comment thread src/bootstrap/check.rs Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both done.

@alexcrichton

Copy link
Copy Markdown
Member

@bors: r=Mark-Simulacrum

@bors

bors commented Sep 18, 2017

Copy link
Copy Markdown
Collaborator

📌 Commit 8f25497 has been approved by Mark-Simulacrum

@bors

bors commented Sep 18, 2017

Copy link
Copy Markdown
Collaborator

⌛ Testing commit 8f25497 with merge 06bb0e0...

bors added a commit that referenced this pull request Sep 18, 2017
rustbuild: with --no-fail-fast, report the specific commands that failed

I'm not sure this is the most elegant way of doing it, I'm still a bit of a rust noob. I tried `Vec<Command>` and keeping `Cell` instead of `RefCell` but couldn't fight my way past the borrow errors, this was the first arrangement that I could make work.
@bors

bors commented Sep 19, 2017

Copy link
Copy Markdown
Collaborator

☀️ Test successful - status-appveyor, status-travis
Approved by: Mark-Simulacrum
Pushing 06bb0e0 to master...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants