-
Notifications
You must be signed in to change notification settings - Fork 352
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
cargo miri test
fails without RUSTC
env var
#3775
Comments
This assertion you are hitting is only active when Various parts of Miri assume that if this is set, then we are in bootstrap, which requires some special behavior and is closely coupled to all the other env vars bootstrap sets. So you can expect a bunch of strange behavior in such an environment. |
Ah right, I do some strange things to try and avoid failures from nightly-detecting crates # Some crates disable nightly feature detection when this is set
export RUSTC_STAGE=1 I guess I might need a |
Ah, damn, that is an unfortunate clash. I'm going to close this issue since there's not a bug here (and rust-lang/rust#128382 will make the error a bit less confusing). If you have ideas for how else Miri could detect that it runs inside bootstrap then please let us know. That said, the reason setting that variable helps is that it makes these crates think they are in rustc bootstrap, so... Maybe you can set this in cargo |
cargo-miri: better error when we seem to run inside bootstrap but something is wrong Cc rust-lang/miri#3775
cargo-miri: better error when we seem to run inside bootstrap but something is wrong Cc rust-lang/miri#3775
Rollup merge of rust-lang#128382 - RalfJung:cargo-miri-assert, r=oli-obk cargo-miri: better error when we seem to run inside bootstrap but something is wrong Cc rust-lang/miri#3775
cargo-miri: better error when we seem to run inside bootstrap but something is wrong Cc #3775
for some reason I'm forced to explicitly tell miri that yes, rustc is rustc, which it then promptly ignores
The text was updated successfully, but these errors were encountered: