-
Notifications
You must be signed in to change notification settings - Fork 341
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
autocfg assumes there is no std #2431
Comments
So looks like this code here now decided that we don't have std. What exactly does My hunch would be that it has to do with this recent change: Lines 757 to 766 in 8fdb720
|
Oh lol, it runs rustc on some code and checks the results. Yeah that has no realistic chance of working. It worked mostly by chance before... We'd have to somehow ensure that MIRI_BE_RUSTC=host is set when build scripts are run. And even then the test is kinda meaningless since it would not be run for the target we are actually building for. Autocfg also passes on the TARGET it seems, but for the target we simply don't have a sysroot it could use. So this was probably already broken before in cross-compilation mode. Though OTOH all it really needs is a check build and that should be possible... |
Ah here we go, I have an error message:
So looks like we need to make Miri parse the |
Thank you! |
This code was running ok with previous version of miri, but not today version.
error:
In the indexmap code, I found it is hitting
#[cfg(not(has_std))]
The text was updated successfully, but these errors were encountered: