Skip to content

Conversation

@infinity0
Copy link
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
Contributor

r? @alexcrichton

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

@infinity0
Copy link
Contributor Author

@Mark-Simulacrum
Copy link
Member

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

@bors
Copy link
Collaborator

bors commented Sep 18, 2017

📌 Commit 435a0ea has been approved by Mark-Simulacrum

Copy link
Member

@kennytm kennytm Sep 18, 2017

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`. 
Copy link
Member

Choose a reason for hiding this comment

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

Ditto.

Copy link
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
Member

@bors: r=Mark-Simulacrum

@bors
Copy link
Collaborator

bors commented Sep 18, 2017

📌 Commit 8f25497 has been approved by Mark-Simulacrum

@bors
Copy link
Collaborator

bors commented Sep 18, 2017

⌛ 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
Copy link
Collaborator

bors commented Sep 19, 2017

☀️ 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

6 participants