-
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
ICE: hir: index out of bounds: the len is 5 but the index is 5
#122399
Comments
Oh yea, I only really implemented and tested llvm |
gcc is now also very broken for statics with multiple references in the trailing expression I'll happily provide guidance for the backends. The most important point is to stop using types of statics, and obtain all information (alignment, size, mutability) from the allocation returned by evaluating the static's initializer Or implement stuff myself if |
I'll let @antoyo take a look for the statics issue. For being able to easily test the gcc backend, it's still in-progress. |
I get an ICE with miri that looks similar (and started showing up around the same time) that I can reproduce with rustc-ice-2024-03-15T19_11_39-24486.txt Edit: filed rust-lang/miri#3389. |
I somehow missed this. In any case this is fixed by rust-lang/rustc_codegen_cranelift@e775fdc. Will do a subtree sync soon. |
I created #122719 so we get sensible ICEs from now on (and fixing rust-lang/miri#3389 in the process |
auto-reduced (treereduce-rust):
original: (tests/ui/consts/promotion-mutable-ref.rs)
Version information
Command:
/home/matthias/.rustup/toolchains/master/bin/rustc -Zcodegen-backend=cranelift
Program output
The text was updated successfully, but these errors were encountered: