-
Notifications
You must be signed in to change notification settings - Fork 13.3k
unstable feature
error needs to specify feature names for better usability.
#24125
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
Comments
Ah ha! So, until right before beta, we used to say "use feature flag x to enable this feature", but since that doesn't work in beta, we removed it, meaning we lost this bit of info. |
All features are unstable in beta, I believe the compiler is trying to say that the |
While that's true, the wording can certainly be better. |
I was going to report the same thing (even with the same library, |
I encountered the same problem, but my version is Release1.0.0, is it the latest version? which one is stable Release? $ rustc --version --verbose |
@Jfromchina that is stable, yes. If it were beta, it would say 1.0.0-beta, or nightly, 1.0.0-nightly. |
Nominating. While it's sort of a papercut, it's also pretty poor UX. |
cc @brson |
triage: P-medium |
This is an easy matter of modifying the |
Oh, it's not so easy actually because the test cases are going to be very unhappy with the different messages on different channels. |
I've started a patch. |
Oh, this originates from the 'unstable feature' lint, so this is just the standard lint error message, saying that the |
Probably the unstable_feature lint should be converted to a no-op and this check folded into feature_gate.rs. |
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
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
Synopsis: The
unstable feature
compiler error does not specify the explicit feature, so when many are enabled in a single line, the user cannot tell which subset are unstable.What I did: Tried to build rust-peg with
rustc 1.0.0-beta (9854143cb 2015-04-02) (built 2015-04-02)
What I expected: A specific error message that let's me know which unstable features I must explicitly enable in order to build
rust-peg
.What happened: I got the following error (rust-peg ticket #72):
Which feature(s) are unstable? The error message needs to be more specific, otherwise I need to try each combination in the superset. :-<
Meta:
The text was updated successfully, but these errors were encountered: