Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign up`unstable feature` error needs to specify feature names for better usability. #24125
Comments
This comment has been minimized.
This comment has been minimized.
|
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. |
steveklabnik
added
the
A-diagnostics
label
Apr 6, 2015
This comment has been minimized.
This comment has been minimized.
|
All features are unstable in beta, I believe the compiler is trying to say that the |
This comment has been minimized.
This comment has been minimized.
|
While that's true, the wording can certainly be better. |
This comment has been minimized.
This comment has been minimized.
hgrecco
commented
Apr 7, 2015
|
I was going to report the same thing (even with the same library, |
This comment has been minimized.
This comment has been minimized.
Jfromchina
commented
Jun 4, 2015
|
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 |
This comment has been minimized.
This comment has been minimized.
|
@Jfromchina that is stable, yes. If it were beta, it would say 1.0.0-beta, or nightly, 1.0.0-nightly. |
This comment has been minimized.
This comment has been minimized.
|
Nominating. While it's sort of a papercut, it's also pretty poor UX. |
steveklabnik
added
the
I-nominated
label
Jun 4, 2015
This comment has been minimized.
This comment has been minimized.
|
cc @brson |
This comment has been minimized.
This comment has been minimized.
|
triage: P-medium |
rust-highfive
added
P-medium
and removed
I-nominated
labels
Jun 17, 2015
brson
added
the
E-easy
label
Jun 17, 2015
This comment has been minimized.
This comment has been minimized.
|
This is an easy matter of modifying the |
This comment has been minimized.
This comment has been minimized.
|
Oh, it's not so easy actually because the test cases are going to be very unhappy with the different messages on different channels. |
This comment has been minimized.
This comment has been minimized.
|
I've started a patch. |
This comment has been minimized.
This comment has been minimized.
|
Oh, this originates from the 'unstable feature' lint, so this is just the standard lint error message, saying that the |
This comment has been minimized.
This comment has been minimized.
|
Probably the unstable_feature lint should be converted to a no-op and this check folded into feature_gate.rs. |
nejucomo commentedApr 6, 2015
Synopsis: The
unstable featurecompiler 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: