Skip to content

Separate cfg-target-has-atomic feature #1442

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

Merged
merged 2 commits into from
Feb 14, 2019

Conversation

Nemo157
Copy link
Member

@Nemo157 Nemo157 commented Jan 29, 2019

The intention here is that nightly becomes a marker feature for opting in to features that use unstable features, but by itself it doesn't activate any extra unstable features; users then activate the specific nightly features they need (e.g. #1438 for another nightly feature) . This avoids unnecessary breakage on downstream crates, e.g. if feature(cfg_target_has_atomic) changes in some way we don't want to break crates that are only using default-features = false, features = ["nightly", "alloc"].

(this is sort of future proofing for things that will not be stable before the core traits can be released on stable, it doesn't mean much yet, but something like this will be necessary in the future)

@cramertj cramertj merged commit f31a92a into rust-lang:master Feb 14, 2019
@Nemo157 Nemo157 deleted the cfg-target-has-atomic branch February 16, 2019 16:21
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

Successfully merging this pull request may close these issues.

3 participants