Skip to content

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

Merged
bors merged 2 commits into
rust-lang:masterfrom
brson:feature-err
Jun 20, 2015
Merged

bors merged 2 commits into
rust-lang:masterfrom
brson:feature-err

Conversation

@brson

@brson brson commented Jun 19, 2015

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor

r? @sfackler

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

@brson

brson commented Jun 19, 2015

Copy link
Copy Markdown
Contributor Author

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

@brson

brson commented Jun 19, 2015

Copy link
Copy Markdown
Contributor Author

r? @steveklabnik

@steveklabnik

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor

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
Copy Markdown
Contributor

@bors: r+

@bors

bors commented Jun 19, 2015

Copy link
Copy Markdown
Collaborator

📌 Commit f14a0e2 has been approved by steveklabnik

@bors

bors commented Jun 20, 2015

Copy link
Copy Markdown
Collaborator

⌛ 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
@bors

bors commented Jun 20, 2015

Copy link
Copy Markdown
Collaborator

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