Uh oh!
There was an error while loading. Please reload this page.
issue #45357 don't build clippy stage 1 - #45548
Conversation
rust-highfive
commented
Oct 26, 2017
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @aturon (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
kennytm
commented
Oct 26, 2017
oli-obk
commented
Oct 28, 2017
There are other crates mentioned in the issue. Can you limit them to stage 2, too? |
@oli-obk Good catch, I didn't run into any issues with rustdoc or cargo, For rustdoc I believe it is handled here: With Cargo I think perhaps it is handled by this line: Where the should_run for rustdoc has no such condition. Edit: Retrying with extended=true in config.toml to see if that won't induce a failing cargo build. |
ratmice
commented
Oct 29, 2017
@oli-obk So .default_condition(builder.build.config.extended) does appear to limit building cargo (and clippy when set) to stage 2 when extented = true in config.toml, However I don't see where this happens occur. Anyhow, I'm at a bit of a loss as to whether clippy needs the condition set instead of my patch, |
oli-obk
commented
Oct 29, 2017
The extended check for clippy makes sense. A stage 1 build without any flags should not build clippy even if it could be built on stage 1 |
ratmice
commented
Oct 29, 2017
@oli-obk I updated the branch to set the extended condition instead of the match. |
shepmaster
commented
Nov 3, 2017
@oli-obk do you want to take over review of this? Or should @Mark-Simulacrum still review? |
oli-obk
commented
Nov 3, 2017
Sure. Who do I ping for the final r+? Or does the bors-delegate thing work? |
oli-obk
commented
Nov 3, 2017
@ratmice I think you forgot to push your changes ;) |
kennytm
commented
Nov 3, 2017
Let's try... @bors delegate=oli-obk |
bors
commented
Nov 3, 2017
✌️ @oli-obk can now approve this pull request |
ratmice
commented
Nov 3, 2017
@oli-obk whoops, pushed a branch on accident, should be fixed now. |
There was a problem hiding this comment.
Compilation error. We don't have NLL in stage0 yet...
[00:01:24] Compiling bootstrap v0.0.0 (file:///checkout/src/bootstrap)
[00:01:28] error[E0382]: use of moved value: `run.builder.build.config.extended`
[00:01:28] --> /checkout/src/bootstrap/tool.rs:418:55
[00:01:28] |
[00:01:28] 418 | run.path("src/tools/clippy").default_condition(run.builder.build.config.extended)
[00:01:28] | --- value moved here ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ value used here after move
[00:01:28] |
[00:01:28] = note: move occurs because `run` has type `builder::ShouldRun<'_>`, which does not implement the `Copy` trait
There was a problem hiding this comment.
Also that one missing space should be re-inserted ;)
ratmice
commented
Nov 3, 2017
@kennytm pushed the wrong patch to the right branch this time, apparently you can create an ambiguous branch in git, and it makes things confusing. Apologies. |
oli-obk
commented
Nov 3, 2017
@bors r+ |
bors
commented
Nov 3, 2017
📌 Commit aa9d0aa has been approved by |
issue rust-lang#45357 don't build clippy stage 1 rust-lang#45357 Wasn't sure top_stage was the right thing, but seemed to go ahead building clippy stage 2.
#45357
Wasn't sure top_stage was the right thing, but seemed to go ahead building clippy stage 2.