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

Remove feature gates for if let, while let, and tuple indexing #19472

Merged
merged 1 commit into from
Dec 5, 2014

Conversation

nrc
Copy link
Member

@nrc nrc commented Dec 2, 2014

Closes #19469

r?

@alexcrichton
Copy link
Member

@nick29581 could you actually outright delete the features instead? I still need to document this, but I don't think we want to deal with the Accepted state any more (you should just remove the name of the feature).

@nrc
Copy link
Member Author

nrc commented Dec 3, 2014

@alexcrichton should we leave them as Accepted for a while so that people get warned about unnecessary feature opt ins? (I guess otherwise they just get an unnecessary feature gate error, which is not as nice, but not too bad).

@sfackler
Copy link
Member

sfackler commented Dec 3, 2014

They can't be deleted outright until after this lands in a snapshot in any case.

@alexcrichton
Copy link
Member

@nick29581 possibly yes, but as #![feature] is a statement of intent that you're willing to accept breakage it's not strictly necessary that we have a warning period. @sfackler is right though in that I think these are required, so don't mind me!

@steveklabnik
Copy link
Member

Even then, they can't be deleted. From a few lines above:

https://github.com/nick29581/rust/blob/iflet/src/libsyntax/feature_gate.rs#L35-L37

@alexcrichton
Copy link
Member

Yeah I wrote that comment when I initially implemented feature gates, but they have changed quite significantly since then and the comment is out of date at this point.

steveklabnik added a commit to steveklabnik/rust that referenced this pull request Dec 3, 2014
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.

Un-feature gate if let, while let, tuple indexing
4 participants