-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
thread 'Worker' panicked at ra-ap-rustc_pattern_analysis-0.37.0/src/constructor.rs:947:63 #16656
Comments
FWIW we're seeing this too, and it's our most common crash in the latest rust-analyzer release. I think it's the unwrap here: https://doc.rust-lang.org/nightly/nightly-rustc/src/rustc_pattern_analysis/constructor.rs.html#943
|
cc @Nadrieril |
I see. Does either of you have a code example that triggers the crash? It's likely a pattern-match expression with a type error |
A fix is in motion: rust-lang/rust#121735 |
…r=compiler-errors pattern analysis: Don't panic when encountering unexpected constructor Tiny PR to fix rust-lang/rust-analyzer#16656 r? `@compiler-errors`
Rollup merge of rust-lang#121735 - Nadrieril:no-panic-on-type-error, r=compiler-errors pattern analysis: Don't panic when encountering unexpected constructor Tiny PR to fix rust-lang/rust-analyzer#16656 r? ``@compiler-errors``
For anyone running into this, note that it will only be fixed after |
Oops yeah, I didn't intend for bors to close this |
Update rustc_pattern_analysis This should fix #16656 but I can't check because we don't have a reproducer.
rust-analyzer version: Tried show RA version but doesnt work, on vscode extension manager it shows v0.4.1857
rustc version: rustc 1.76.0 (07dca489a 2024-02-04)
relevant settings: (eg. client settings, or environment variables like
CARGO
,RUSTC
,RUSTUP_HOME
orCARGO_HOME
)rust-analzer constantly crashes
The text was updated successfully, but these errors were encountered: