-
Notifications
You must be signed in to change notification settings - Fork 13.3k
ICE: range start index 1 out of range for slice of length 1
in rustc_const_eval/src/interpret/terminator.rs
#127304
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
Minimized: struct Foo<const B: bool>;
const fn bar(_: Foo, _: i32) {}
const X: () = bar(()); Error output
This ICE occurs in nightly but not in stable or beta. @rustbot labels -F-adt_const_params +regression-from-stable-to-nightly |
WG-prioritization assigning priority (Zulip discussion). @rustbot label -I-prioritize +P-medium |
Bisecting the second smaller repro brings us to 7b21c18 cc @oli-obk @nnethercote searched nightlies: from nightly-2024-06-01 to nightly-2024-07-05 bisected with cargo-bisect-rustc v0.6.8Host triple: x86_64-unknown-linux-gnu cargo bisect-rustc --without-cargo --preserve --start=2024-06-01 --script script.sh |
We don't track error -> ICE as regressions if there still is a useful error before the ICE |
Code
Meta
rustc --version --verbose
:Error output
Backtrace
Note
Ice location:
rust/compiler/rustc_const_eval/src/interpret/terminator.rs
Lines 130 to 136 in 6292b2a
@rustbot label +F-adt_const_params
The text was updated successfully, but these errors were encountered: