Skip to content

Make a better error message for using #[feature] on stable rust #26417

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
Jun 20, 2015

Conversation

brson
Copy link
Contributor

@brson brson commented Jun 19, 2015

It now says '#[feature] may not be used on the stable release channel'.

I had to convert this error from a lint to a normal compiler error.

I left the lint previously-used for this in place since removing it is
a breaking change. It will just go unused until the end of time.

Fixes #24125

@rust-highfive
Copy link
Contributor

r? @sfackler

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

@brson
Copy link
Contributor Author

brson commented Jun 19, 2015

There are no tests for this error because with the current bootstrapping design it can't be emitted during the build.

@brson
Copy link
Contributor Author

brson commented Jun 19, 2015

r? @steveklabnik

@steveklabnik
Copy link
Member

It will just go unused until the end of time.

😢

Looks good to me! I'll be glad to get this improved. 🎊

It now says '#[feature] may not be used on the stable release channel'.

I had to convert this error from a lint to a normal compiler error.

I left the lint previously-used for this in place since removing it is
a breaking change. It will just go unused until the end of time.

Fixes rust-lang#24125
@steveklabnik
Copy link
Member

This LGTM but I'm gonna build a copy locally before I r+. If anyone else feels confident enough to do so in the meantime, feel free :)

@steveklabnik
Copy link
Member

@bors: r+

@bors
Copy link
Collaborator

bors commented Jun 19, 2015

📌 Commit f14a0e2 has been approved by steveklabnik

@bors
Copy link
Collaborator

bors commented Jun 20, 2015

⌛ Testing commit f14a0e2 with merge 74a7e8b...

bors added a commit that referenced this pull request Jun 20, 2015
It now says '#[feature] may not be used on the stable release channel'.

I had to convert this error from a lint to a normal compiler error.

I left the lint previously-used for this in place since removing it is
a breaking change. It will just go unused until the end of time.

Fixes #24125
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.

5 participants