-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
using extern-prelude does not allow use of std/core #50605
Comments
It needs a separate (library!) addition - |
Can't is a strong word. =) Linking in std is "well known" to rustc so we certainly could make it work, I would imagine. However, I don't really care how we implement it, I just want the example to work. =) |
We should just insert std in extern-prelude if the crate is not no-std? (and something similar for core) |
Similarly CC #44660 |
I think we can do this in the compiler temporarily and then move to the library prelude once bugs are fixed. |
Add std/core to prelude if extern_prelude enabled Fixes #50605
Example (play):
I would expect this to work. (I presume it doesn't because cargo doesn't pass
--extern std
.)cc @petrochenkov @Manishearth
The text was updated successfully, but these errors were encountered: