-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Remove inline_const
from INCOMPLETE_FEATURES
#80349
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
Conversation
oh wow, we have no compilation failure tests for
I'll wait for CI to pass, then I'll r+ |
I found a feature gate test, but it doesn't contain anything related to |
@bors r+ Thanks for checking. I still think we should add some tests that enable the flag but cause compilation errors with |
📌 Commit 4de0e8c has been approved by |
gonna @bors r- this for now. If you disagree with my assessment feel free to approve this again. |
@lcnr #78174 should fail to compile, so it does not prevent correct uses of the feature. I think it should not block this PR? Also I think Edit: Mentioned the wrong issue. Sorry. |
This comment has been minimized.
This comment has been minimized.
#![feature(inline_const)]
fn main() {
const { &1 };
} causes an ICE and is supposed to compile. https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=50e7b8f6374b04372127fa8adc6f360c |
Oh, indeed. My bad. #78174 needs updating. |
To explain myself a bit better here: I consider |
Fair point. Maybe I'm too zealous about |
Now I am somewaht concerned that the standard library uses some of these features...
|
remove allow(incomplete_features) from std cc rust-lang#80349 (comment) > Now I am somewhat concerned that the standard library uses some of these features... I think it is theoretically ok to use incomplete features in the standard library or the compiler if we know that there is an already working subset and we explicitly document what we have to be careful about. Though at that point it is probably better to try and split the incomplete feature into two separate ones, similar to `min_specialization`. Will be interesting once `feature(const_evaluatable_checked)` works well enough to imo be used in the compiler but not yet well enough to be removed from `INCOMPLETE_FEATURES`. r? `@RalfJung`
#![feature(inline_const)]
should be fully implemented now.I didn't run tests locally because the compiler ran out of memory on my poor device, but I think it's fine because
inline_const
is only used in a few places.r? @oli-obk
@rustbot label: F-inline_const