-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Regression for #![feature(const_in_array_repeat_expressions)] #77138
Comments
No, this is caused by #75502. We used to incorrectly apply So, this was never intended to work, and worked by accident. To make this work we'd have to change array initializers to explicit promotion rules, which IIRC we already have an issue for? See https://github.com/rust-lang/const-eval/blob/master/promotion.md for some background. |
Hm, looks like we do not have an issue open for this, but the tracking issue probably makes sense as a place for this discussion: #49147. |
Makes sense, we can continue discussion in the tracking issue. |
The following code used to compile on nightly, but now does not:
Note that
still compiles. Adding
#![feature(const_fn)]
doesn't affect this issue.I think this regression was introduced in either #76807 or #76850
CC: @ecstatic-morse @oli-obk
The text was updated successfully, but these errors were encountered: