-
Notifications
You must be signed in to change notification settings - Fork 13k
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: mir build: scope: index out of bounds: the len is 0 but the index is 0
#125670
Comments
Minimized: fn foo() {
const { return }
} Variations that also cause ICEs of varying kinds: fn foo() {
'a: {
const { break 'a }
}
} fn foo() {
loop {
const { break }
}
} fn foo() {
'a: {
const { continue 'a }
}
} fn foo() {
loop {
const { continue }
}
} async fn foo() {
const { async {}.await }
} fn foo() {
let x = 1;
const { &x };
} |
cc @nbdd0121 that's pretty bad... the fix for that should probably be backported or maybe even delaying the stabilization for one release? no strong opinion. |
These examples all generate correct errors on beta (which contains inline const stablisation) but ICE on nightly. Looks like something else breaks these? |
@rustbot label: +E-needs-bisection |
I've tried bisecting a couple of them and they all both point to 7717a30 cc @oli-obk @nnethercote @rustbot label -E-needs-bisection |
WG-prioritization assigning priority (Zulip discussion). Being easy to be triggered even if for now only on nightly. @rustbot label -I-prioritize +P-high |
P-high pre-triage: AFAICT this was fixed by #125918, none of these examples ICE on nightly or stable (1.82.0). |
Oh wait I see, these simple examples don't have regression tests. EDIT: unassigning oli who's on vacation, marking this as E-easy for basic sanity tests for examples in #125670 (comment). |
@rustbot claim |
Rollup merge of rust-lang#133012 - Eclips4:issue-125670, r=compiler-errors Add test cases for rust-lang#125918 Closes rust-lang#125670 r? `@jieyouxu`
auto-reduced (treereduce-rust):
original:
Version information
Command:
/home/matthias/.rustup/toolchains/master/bin/rustc
Program output
The text was updated successfully, but these errors were encountered: