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
warning: struct `Foo` is never constructed
--> 1.rs:4:8
|
4 | struct Foo(String);
| ^^^
|
= note: `#[warn(dead_code)]` on by default
thread 'rustc' panicked at /rustc/85abb276361c424d64743c0965242dd0e7b866d1/compiler/rustc_hir/src/hir.rs:1165:18:
can't get the span of an arbitrary parsed attribute: Parsed(Repr([(ReprTransparent, 1.rs:3:8: 3:19 (#0))]))
stack backtrace:
0: _rust_begin_unwind
1: core::panicking::panic_fmt
2: <clippy_lints::macro_use::MacroUseImports as rustc_lint::passes::LateLintPass>::check_attribute
3: <rustc_lint::late::LateContextAndPass<rustc_lint::late::RuntimeCombinedLateLintPass>>::with_lint_attrs::<<rustc_lint::late::LateContextAndPass<rustc_lint::late::RuntimeCombinedLateLintPass> as rustc_hir::intravisit::Visitor>::visit_item::{closure#0}>
4: rustc_hir::intravisit::walk_mod::<rustc_lint::late::LateContextAndPass<rustc_lint::late::RuntimeCombinedLateLintPass>>
5: rustc_lint::late::check_crate::{closure#0}
6: rustc_lint::late::check_crate
7: rustc_interface::passes::analysis
[... omitted 1 frame ...]
8: rustc_interface::passes::create_and_enter_global_ctxt::<core::option::Option<rustc_interface::queries::Linker>, rustc_driver_impl::run_compiler::{closure#0}::{closure#2}>
9: rustc_interface::interface::run_compiler::<(), rustc_driver_impl::run_compiler::{closure#0}>::{closure#1}
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
error: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust-clippy/issues/new?template=ice.yml
note: please make sure that you have updated to the latest nightly
note: please attach the file at `/private/tmp/rustc-ice-2025-02-26T02_44_19-99705.txt` to your bug report
query stack during panic:
#0 [analysis] running analysis passes on this crate
end of query stack
note: Clippy version: clippy 0.1.86 (85abb27636 2025-02-25)
warning: 1 warning emitted
Summary
Code:
cf. #14295
Version
Error output
Backtrace
rustc-ice-2025-02-26T02_44_19-99705.txt
The text was updated successfully, but these errors were encountered: