-
Notifications
You must be signed in to change notification settings - Fork 13.4k
some const_int_foo features were entirely removed #57562
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
Const feature flags are handled a little differently to regular feature flags. Ideally, we'd handle these in the same way as regular library feature flags. For example, when Line 2887 in 0e1402d
Should have been replaced by some sort of rustc_const_stable flag, e.g. #[rustc_const_stable(feature = "const_int_wrapping", since = "1.33.0")] .
The problem is that One could by searching for |
I would personally prefer to simply warn on unknown features rather than introduce While retaining |
It's possible to add a "const stability" banner like the regular stability banner and make rustdoc look it up based on that attribute. @rust-lang/rustdoc |
Hello! I'd be interested in working on this if nobody else already is |
@doctorn Don't think anyone is working on this... The main issue seems to be that we haven't settled how we want to approach this since me and @varkor have a disagreement... and the rustdoc team hasn't weighed in except for @QuietMisdreavus ;) |
May I suggest that the |
I suspect it likely doesn't matter too much at this point -- this is a pretty old issue, and I think we should const stability these days. So I'm going to go ahead and just close. |
As part of the
const
project moving things into stable, some of the associated sub-features were recently removed entirely rather than being left in with a warning about them being old, which causes previously working code to now error out (example build log). Of course it's nightly and all, but it'd be better if they could be warnings instead of errors.The text was updated successfully, but these errors were encountered: