-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
issue #45357 don't build clippy stage 1 #45548
Conversation
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. |
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. |
@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, |
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 |
@oli-obk I updated the branch to set the extended condition instead of the match. |
@oli-obk do you want to take over review of this? Or should @Mark-Simulacrum still review? |
Sure. Who do I ping for the final r+? Or does the bors-delegate thing work? |
@ratmice I think you forgot to push your changes ;) |
Let's try... @bors delegate=oli-obk |
✌️ @oli-obk can now approve this pull request |
@oli-obk whoops, pushed a branch on accident, should be fixed now. |
src/bootstrap/tool.rs
Outdated
@@ -415,7 +415,7 @@ impl Step for Clippy { | |||
const ONLY_HOSTS: bool = true; | |||
|
|||
fn should_run(run: ShouldRun) -> ShouldRun { | |||
run.path("src/tools/clippy") | |||
run.path("src/tools/clippy").default_condition(run.builder.build.config.extended) |
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also that one missing space should be re-inserted ;)
@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. |
@bors r+ |
📌 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.