Some unstable const features do not indicate the right feature flag in their diagnostics #71797
Labels
A-const-eval
Area: Constant evaluation, covers all const contexts (static, const fn, ...)
A-diagnostics
Area: Messages for errors, warnings, and lints
D-papercut
Diagnostics: An error or lint that needs small tweaks.
D-terse
Diagnostics: An error or lint that doesn't give enough information about the problem at hand.
requires-nightly
This issue requires a nightly compiler in some way.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Generally, when one does something on nightly that would work with a feature gate, but the feature gate is missing, the error should indicate the missing gate. For some const features, that is currently not the case, for example:
This got triggered by #71630, but is orthogonal to the discussion around the unleash flag in #71631.
(I did not try to exhaustively explore this issue for all const gates.)
Cc @rust-lang/wg-const-eval
This issue has been assigned to @mibac138 via this comment.
The text was updated successfully, but these errors were encountered: