You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PS C:\Users\michi\development\private\off-rs> cargo clippy
Checking off-rs v0.1.0 (C:\Users\michi\development\private\off-rs)
thread 'rustc' panicked at 'called `Option::unwrap()` on a `None` value', /rustc/02072b482a8b5357f7fb5e5637444ae30e423c40\compiler\rustc_hir\src\definitions.rs:452:14
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust-clippy/issues/new
note: Clippy version: clippy 0.1.58 (02072b48 2022-01-11)
query stack during panic:
#0 [analysis] running analysis passes on this crate
end of query stack
Actually, I am not sure if this is an issue with just clippy, since cargo build also panics:
PS C:\Users\michi\development\private\off-rs> cargo build
Compiling off-rs v0.1.0 (C:\Users\michi\development\private\off-rs)
thread 'rustc' panicked at 'called `Option::unwrap()` on a `None` value', /rustc/02072b482a8b5357f7fb5e5637444ae30e423c40\compiler\rustc_hir\src\definitions.rs:452:14
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md
note: rustc 1.58.0 (02072b482 2022-01-11) running on x86_64-pc-windows-msvc
note: compiler flags: -C embed-bitcode=no -C debuginfo=2 -C incremental --crate-type lib
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
#0 [analysis] running analysis passes on this crate
end of query stack
error: could not compile `off-rs`
After renaming my struct
DocumentParser
toOffDocument
(https://github.com/michidk/off-rs/blob/clippy_err/src/parser/mod.rs#L19) with vscode and rust-analyzer, clippy panics.Edit: Happens with every new name.
How to replicate
Clone https://github.com/michidk/off-rs/tree/clippy_err (
clippy_errr
branch)Run
cargo clippy
(version: clippy 0.1.58 (02072b48 2022-01-1)The text was updated successfully, but these errors were encountered: