You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After merging rust-lang/crates.io#7808 I noticed that some dependencies started to recompile for every build. I just ran a git bisect session and could reproduce the issue:
How can I reproduce this? I ran cargo check --workspace in rust-lang/crates.io twice and nothing got recompiled, at rust-lang/crates.io@95236c5 which is before the 2 revert commits.
if I try to run the latter on the CLI outside of IntelliJ I get:
error: the option `Z` is only accepted on the nightly compiler
error: test failed, to rerun pass `-p crates_io --lib`
error: 1 target failed:
`-p crates_io --lib`
so I guess IntelliJ might be using RUSTC_BOOTSTRAP to enable usage of -Z unstable-options on the stable compiler 🙈
Activity
Turbo87 commentedon Dec 28, 2023
It looks like anyhow v1.0.77 is causing similar issues
dtolnay commentedon Dec 28, 2023
How can I reproduce this? I ran
cargo check --workspacein rust-lang/crates.io twice and nothing got recompiled, at rust-lang/crates.io@95236c5 which is before the 2 revert commits.Turbo87 commentedon Dec 28, 2023
hmm, I noticed it while running tests from within IntelliJ. I'll try and reproduce it on the command line once I'm back on the computer tomorrow.
Turbo87 commentedon Dec 29, 2023
looks like IntelliJ is more or less at fault here... when running the test suite inside of IntelliJ it is first compiling the test code via:
and then running the tests with:
if I try to run the latter on the CLI outside of IntelliJ I get:
so I guess IntelliJ might be using
RUSTC_BOOTSTRAPto enable usage of-Z unstable-optionson the stable compiler 🙈Turbo87 commentedon Dec 29, 2023
https://youtrack.jetbrains.com/issue/RUST-13133/RUSTCBOOTSTRAP1-is-passed-to-test-configuration seems to confirm my suspicion :-/
dtolnay commentedon Dec 29, 2023
Good catch. I commented on the RustRover issue tracker with my suggested fix.