Skip to content

thread 'Worker' panicked at ra-ap-rustc_pattern_analysis-0.37.0/src/constructor.rs:947:63 #16656

Closed
rust-lang/rust
#121735
@edg-l

Description

@edg-l

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 or CARGO_HOME)

rust-analzer constantly crashes

thread 'Worker' panicked at /github/home/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ra-ap-rustc_pattern_analysis-0.37.0/src/constructor.rs:947:63:
called `Option::unwrap()` on a `None` value
stack backtrace:
   0: rust_begin_unwind
             at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:645:5
   1: core::panicking::panic_fmt
             at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/panicking.rs:72:14
   2: core::panicking::panic
             at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/panicking.rs:144:5
   3: ra_ap_rustc_pattern_analysis::constructor::ConstructorSet<Cx>::split
   4: ra_ap_rustc_pattern_analysis::usefulness::compute_exhaustiveness_and_usefulness
   5: ra_ap_rustc_pattern_analysis::usefulness::compute_match_usefulness
   6: hir_ty::diagnostics::expr::BodyValidationDiagnostic::collect
   7: hir::DefWithBody::diagnostics
   8: hir::ModuleDef::diagnostics
   9: hir::Module::diagnostics
  10: ide_diagnostics::diagnostics
  11: std::panicking::try
  12: ide::Analysis::assists_with_fixes
  13: rust_analyzer::handlers::request::handle_code_action
  14: std::panicking::try
  15: core::ops::function::FnOnce::call_once{{vtable.shim}}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions