Skip to content
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

Removed in_band_lifetimes from rustc_trait_selection #91927

Conversation

lameferret
Copy link
Contributor

Issue: #91867

Wasn't able to run ./x.py build --stage 0 compiler/rustc_trait_selection/ got
thread 'main' panicked at 'error: no rules matched compiler/rustc_trait_selection/', src/bootstrap/builder.rs:236:17 only ran ./x.py check
Is this the supposed behaviour ?

@rustbot rustbot added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Dec 14, 2021
@rust-highfive
Copy link
Collaborator

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @oli-obk (or someone else) soon.

Please see the contribution instructions for more information.

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 14, 2021
@oli-obk
Copy link
Contributor

oli-obk commented Dec 14, 2021

Is this the supposed behaviour ?

Well... kind of. Even if that one crate compiles, you still need to check if the rest of the compiler still works, as other parts of the compiler depend on that one crate.

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Dec 14, 2021

📌 Commit 486ee57 has been approved by oli-obk

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Dec 14, 2021
@jackh726
Copy link
Member

Duplicate of #91904, sorry!

@jackh726 jackh726 closed this Dec 14, 2021
@lameferret lameferret changed the title Remove in_band_lifetimes from rustc_trait_selection Removed in_band_lifetimes from rustc_trait_selection Dec 14, 2021
@camelid
Copy link
Member

camelid commented Dec 14, 2021

Wasn't able to run ./x.py build --stage 0 compiler/rustc_trait_selection/

Why are you passing --stage 0? Don't pass a --stage flag in this case.

@lameferret
Copy link
Contributor Author

lameferret commented Dec 14, 2021

Wasn't able to run ./x.py build --stage 0 compiler/rustc_trait_selection/

Why are you passing --stage 0? Don't pass a --stage flag in this case.

To build a compiler, run ./x.py build. This will build up to the stage1 compiler, including rustdoc, producing a usable compiler toolchain from the source code you have checked out.
For hacking, often building the stage 1 compiler is enough, but for final testing and release, the stage 2 compiler is used.
From rust-dev-guide

Reading this, I thought stage 0 would give the fastest compile time and errors I'm interested in, later on I can check stage1 and 2 before pushing.

And I tried without stage flag, got same error

@camelid
Copy link
Member

camelid commented Dec 14, 2021

And I tried without stage flag, got same error

Yeah, that part's probably because of #91927 (comment). Still, --stage 0 is incorrect here. Usually ./x.py build (with no arguments) will do the right thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants