-
Notifications
You must be signed in to change notification settings - Fork 380
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
Can't build project with rustix
dependency after loading project in IDE
#10186
Comments
This may be due to a bug in rustix, which may be fixed by bytecodealliance/rustix#544. Could you test whether the problem still exists in rustix 0.36.9 or 0.37.1? |
|
Same for rustix 0.36.9 |
Anecdotally, this Windows machine on 0.4.187 handles everything fine. Linux on the latest (0.4.189, I think?) encounters this. Patching rustix to various versions had no effect. |
Same. I have to run |
Rustix depends on a build script in order to decide whether it can use types like |
I managed to hack around this by:
It seems to me that intellij-rust is passing a bad (combination of) flags to rustc that triggers the above. |
Same here; switching back to intellij seems to wrongfully switch to nightly every time. Have to go back to the terminal, cargo clean and rebuild. |
I can confirm the issue is not reproducible with |
Environment
Problem description
The problem is similar to #9880 - the plugin passes
RUSTC_BOOTSTRAP=1
during build script evaluation to use--keep-going
cargo option, it affects build scripts execution and incremental builds and as a result, you getwhen you try to make actual building of the project
rustix
asanyhow
andthiserror
try to build some rust code inside build script to check if some compiler feature is available or not but uses a slightly different approach, and #9901 fix doesn't work in its caseSteps to reproduce
Cargo.toml
main.rs
The text was updated successfully, but these errors were encountered: