Skip to content

Feature gate #[static_assert]. #22960

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 1 commit into from
Mar 3, 2015
Merged

Feature gate #[static_assert]. #22960

merged 1 commit into from
Mar 3, 2015

Conversation

huonw
Copy link
Member

@huonw huonw commented Mar 2, 2015

The API this exposes is a little strange (being attached to statics),
so it makes sense to conservatively feature gate it. If it is highly
popular, it is possible to reverse this gating.

@rust-highfive
Copy link
Contributor

r? @nikomatsakis

(rust_highfive has picked a reviewer for you, use r? to override)

@nikomatsakis
Copy link
Contributor

@bors r+ ae5be58

wow, I have no idea this was in there.

@nagisa
Copy link
Member

nagisa commented Mar 2, 2015

@nikomatsakis and the implementation of this ain’t pretty either. I honestly wish it eventually goes away.

The API this exposes is a little strange (being attached to `static`s),
so it makes sense to conservatively feature gate it. If it is highly
popular, it is possible to reverse this gating.
@huonw
Copy link
Member Author

huonw commented Mar 3, 2015

@bors r=nikomatsakis

@bors
Copy link
Collaborator

bors commented Mar 3, 2015

@bors r=huonw c195783

Manishearth added a commit to Manishearth/rust that referenced this pull request Mar 3, 2015
 The API this exposes is a little strange (being attached to `static`s),
so it makes sense to conservatively feature gate it. If it is highly
popular, it is possible to reverse this gating.
@bors bors merged commit c195783 into rust-lang:master Mar 3, 2015
@huonw huonw deleted the static-assert branch March 4, 2015 02:34
@emberian
Copy link
Member

Holy crap, I'm amazed this feature still exists. It was one of my first PRs to Rust, and it's still hacky as all hell.

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.

6 participants