-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
ICE when using slice patterns in const fn. #66934
Comments
cc @wesleywiser |
Maybe this ends up having type Lines 1790 to 1796 in 4af3ee8
|
Yupp, this is wrong (cc @oli-obk): rust/src/librustc_mir/interpret/operand.rs Lines 403 to 414 in 4af3ee8
It should look more like this: rust/src/librustc_mir/interpret/place.rs Lines 469 to 474 in 4af3ee8
Note that this special-casing is limited to ZSTs, but not specific to CTFE. And so this ICEs in standalone #![feature(slice_patterns)]
fn main() {
let x = [()];
let [y @ ..] = x;
} |
Marking as P-high as this is the last blocker for stabilizing |
The following code ICEs
Playground
Backtrace
The text was updated successfully, but these errors were encountered: