-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
ICE: uncaught type error: pattern ... has inconsistent arity (expected arity <= ...)
in rustc_pattern_analysis/src/rustc.rs
#125914
Comments
Regression in rust-lang-ci@fa215ae searched nightlies: from nightly-2023-01-01 to nightly-2024-05-30 bisected with cargo-bisect-rustc v0.6.8Host triple: x86_64-unknown-linux-gnu cargo bisect-rustc --start=2023-01-01 --end=2024-05-30 --regress=ice --script=rustc --preserve -- 125914.rs |
Wait, above regression results is exactly same with regression results in #125805. What a coincidence. |
Avoid ICES after reporting errors on erroneous patterns fixes rust-lang#109812 fixes rust-lang#125914 fixes rust-lang#124004
Avoid ICES after reporting errors on erroneous patterns fixes rust-lang#109812 fixes rust-lang#125914 fixes rust-lang#124004
Avoid ICES after reporting errors on erroneous patterns fixes rust-lang#109812 fixes rust-lang#125914 fixes rust-lang#124004
Avoid ICES after reporting errors on erroneous patterns fixes rust-lang#109812 fixes rust-lang#125914 fixes rust-lang#124004
Avoid ICES after reporting errors on erroneous patterns fixes rust-lang#109812 fixes rust-lang#125914 fixes rust-lang#124004
Avoid ICES after reporting errors on erroneous patterns fixes rust-lang#109812 fixes rust-lang#125914 fixes rust-lang#124004
Rollup merge of rust-lang#126320 - oli-obk:pat_ice, r=lcnr Avoid ICES after reporting errors on erroneous patterns fixes rust-lang#109812 fixes rust-lang#125914 fixes rust-lang#124004
Code
(hand-reduced)
(original)
Meta
rustc --version --verbose
:Error output
Command:
rustc
Backtrace
Note
rustc_pattern_analysis/src/rustc.rs L898
rust/compiler/rustc_pattern_analysis/src/rustc.rs
Lines 897 to 899 in 032af18
rustc_pattern_analysis/src/usefulness.rs L1010
(fn pop_head_constructor)rust/compiler/rustc_pattern_analysis/src/usefulness.rs
Lines 1007 to 1012 in 032af18
The text was updated successfully, but these errors were encountered: