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

Feature-gate #[no_std] #21833

Closed
kmcallister opened this Issue Feb 1, 2015 · 2 comments

Comments

Projects
None yet
4 participants
@kmcallister
Copy link
Contributor

kmcallister commented Feb 1, 2015

It breaks various things at the syntax layer, e.g. #21827, #16803, #14342. I plan to fix those before the beta but I'm not sure what other issues there are.

@sfackler

This comment has been minimized.

Copy link
Member

sfackler commented Feb 1, 2015

If we feature gate this, it'd be nice to move std injection either into expansion or after it. Right now you can't do #![cfg_attr(feature = "foo", no_std)], which means that crates that want to compile both in normal and no_std contexts have to use no_std. For example, take rust-phf: sfackler/rust-phf@24555b1.

@pnkfelix

This comment has been minimized.

Copy link
Member

pnkfelix commented Feb 5, 2015

1.0 beta

@pnkfelix pnkfelix added this to the 1.0 beta milestone Feb 5, 2015

@pnkfelix pnkfelix added P-medium and removed I-nominated labels Feb 5, 2015

@kmcallister kmcallister self-assigned this Feb 5, 2015

kmcallister added a commit to kmcallister/rust that referenced this issue Feb 6, 2015

Feature-gate #![no_std]
Fixes rust-lang#21833.

[breaking-change]

kmcallister added a commit to kmcallister/rust that referenced this issue Feb 6, 2015

Feature-gate #![no_std]
Fixes rust-lang#21833.

[breaking-change]

bors added a commit that referenced this issue Feb 7, 2015

Auto merge of #21988 - kmcallister:no-std, r=alexcrichton
Fixes #21833.

[breaking-change]

r? @alexcrichton 

The tests in #21912 will also need `#[feature(no_std)]`. If you're okay with both PRs, I can merge and test them.

kmcallister added a commit to kmcallister/rust that referenced this issue Feb 7, 2015

Feature-gate #![no_std]
Fixes rust-lang#21833.

[breaking-change]

bors added a commit that referenced this issue Feb 8, 2015

Auto merge of #21988 - kmcallister:no-std, r=sfackler
Fixes #21833.

[breaking-change]

r? @alexcrichton 

The tests in #21912 will also need `#[feature(no_std)]`. If you're okay with both PRs, I can merge and test them.

@bors bors closed this in #21988 Feb 8, 2015

dlrobertson pushed a commit to dlrobertson/rust that referenced this issue Nov 29, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.