Skip to content
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

empty crates depend on libcore #58997

Closed
gnzlbg opened this issue Mar 7, 2019 · 5 comments
Closed

empty crates depend on libcore #58997

gnzlbg opened this issue Mar 7, 2019 · 5 comments

Comments

@gnzlbg
Copy link
Contributor

gnzlbg commented Mar 7, 2019

This crate:

#![crate_type = "rlib"]
#![no_std]

implicitly contains an extern crate core even though it does not use anything from it (not even lang-items).

@jonas-schievink
Copy link
Contributor

Not sure this is a bug - libcore is opt-out just like libstd is, you need #![no_core]

@steveklabnik
Copy link
Member

@gnzlbg
Copy link
Contributor Author

gnzlbg commented Mar 7, 2019

Can't do that in stable Rust =/

@steveklabnik
Copy link
Member

That's tracked by #29639

@gnzlbg
Copy link
Contributor Author

gnzlbg commented Mar 7, 2019

The discussion on Discord suggested that this attribute was intended to be perma-unstable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants