-
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: assertion failed: value <= 0xFFFF_FF00
#121126
Comments
I cannot reproduce this with a local stage 1 build 😕 nightly and beta show this tho... |
maybe this is a rustc miscompile? #121124 (comment) cc @saethlin |
I can reproduce this on aarch64-apple-darwin, and on beta. |
The calls to rust/compiler/rustc_mir_transform/src/const_prop_lint.rs Lines 113 to 119 in fa9f77f
|
WG-prioritization assigning priority (Zulip discussion). @rustbot label -I-prioritize +P-medium |
When indexing an array with an index (u32) that exceeds the maximum value allowed by FieldIdx (default: 0xFFFF_FF00), although the compiler would detect the error, it would also cause a panic, which is a bug. I fixed it by adding a verification before calling the FieldIdx::from_u32(idx) method. This check ensures that if the idx value is greater than the maximum allowed value, it returns Option::None, similar to how other functions handle errors during the call to the project method of type Value.
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: