-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Improve fidelity of rustc-crates-on-stable
test
#133168
Improve fidelity of rustc-crates-on-stable
test
#133168
Conversation
Asked cargo team about if |
While it should be doable for rustc, IIRC cargo features are checked for the workspace and not only the crates you build (you could for example add Which is also maybe a reason why stage0 cargo could or could not be used to simulate this stable cargo. But again any behavior here should not impact the crates that r-a doesn't use. |
bb390e8
to
f9721de
Compare
f9721de
to
e255082
Compare
Good point about the workspace because other compiler crates necessarily require using unstable cargo features, so we can't ask this cargo to pretend that it is a stable cargo. However, what I can do here is:
EDIT: right, |
I thought about this, and I don't think this change is quite correct because it must not affect other compiler crates. Thanks for the reminder @lqd! |
Use
RUSTC_BOOTSTRAP=-1
to make the underlyingrustc
think it is a stablerustc
, really making sure that these compiler crates can be compiled on the stable channel.cc @Kobzol who suggested this in #132993 (comment), thanks!
You can tell this works because if I keep
.env("RUSTFLAGS", "-Zallow-features=")
, the underlying rustc thinks it is very stable and thus rejects the unstable-Zallow-features
flag.r? compiler