-
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: const_panic panics in some cases #85907
Comments
Ah, yes, array lengths... this is like #79047 |
Cc @rust-lang/wg-const-eval |
This ICEs on stable: const fn hey() -> usize {
panic!(123);
}
fn main() {
let _: [u8; hey()] = todo!();
} I thought we have an issue for this somewhere? Basically, array lengths (and patterns) side-step all prior checks, including stability checks, and try to evaluate this constant anyway. |
Hmm |
Issue: rust-lang/rust#85907
No longer ICEs since #93691 |
…07, r=Mark-Simulacrum Add regression test for rust-lang#85907 closes rust-lang#85907
…askrgr Rollup of 11 pull requests Successful merges: - rust-lang#98548 (rustdoc-json: Allow Typedef to be different in sanity assert) - rust-lang#98560 (Add regression test for rust-lang#85907) - rust-lang#98564 (Remove references to `./tmp` in-tree) - rust-lang#98602 (Add regression test for rust-lang#80074) - rust-lang#98606 (:arrow_up: rust-analyzer) - rust-lang#98609 (Fix ICE for associated constant generics) - rust-lang#98611 (Fix glob import ICE in rustdoc JSON format) - rust-lang#98617 (Remove feature `const_option` from std) - rust-lang#98619 (Fix mir-opt wg name) - rust-lang#98621 (llvm-wrapper: adapt for removal of the ASanGlobalsMetadataAnalysis LLVM API) - rust-lang#98623 (fix typo in comment) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Playground: https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=31e3a36a34e378389943330936b81dbf
Output
cc @RalfJung
The text was updated successfully, but these errors were encountered: