-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Open
Labels
C-bugCategory: Clippy is not doing the correct thingCategory: Clippy is not doing the correct thingI-ICEIssue: Clippy panicked, giving an Internal Compilation Error (ICE) ❄️Issue: Clippy panicked, giving an Internal Compilation Error (ICE) ❄️
Description
Summary
I was just compiling my codebase and randomly hit a panic.
Command: make lint test
Makefile:
.PHONY: lint
lint: ## lints the codebase
cargo fmt
.PHONY: test
test: ## runs tests
cargo fmt --check
cargo check
cargo clippy --tests
cargo test
Let me know if there is any sensitive data in the backtrace that I should redact.
Version
rustc 1.90.0 (1159e78c4 2025-09-14)
binary: rustc
commit-hash: 1159e78c4747b02ef996e55082b704c09b970588
commit-date: 2025-09-14
host: aarch64-apple-darwin
release: 1.90.0
LLVM version: 20.1.8
Error output
Backtrace
error: internal compiler error: compiler/rustc_metadata/src/rmeta/decoder/cstore_impl.rs:709:32: uninterned StableCrateId: StableCrateId(0)
thread 'rustc' panicked at compiler/rustc_metadata/src/rmeta/decoder/cstore_impl.rs:709:32:
Box<dyn Any>
stack backtrace:
0: 0x10f2376dc - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::hf35f9734f9a29483
1: 0x10c7053c8 - core::fmt::write::h60ec6633daab7b35
2: 0x10f22bcec - std::io::Write::write_fmt::hc29709fdab2e34e2
3: 0x10f23759c - std::sys::backtrace::BacktraceLock::print::hca95bffd78053951
4: 0x10f23c150 - std::panicking::default_hook::{{closure}}::h357ed4fbef22679d
5: 0x10f23be28 - std::panicking::default_hook::h0a4e133b151d5758
6: 0x10d2f93b4 - rustc_driver_impl[fe1bcf639e75a35c]::install_ice_hook::{closure#1}
7: 0x10f23cadc - std::panicking::rust_panic_with_hook::h557a23724a5de839
8: 0x10d329778 - std[37ceaa58691cab6f]::panicking::begin_panic::<rustc_errors[d612ea0f5ed2633a]::ExplicitBug>::{closure#0}
9: 0x10d3182d8 - std[37ceaa58691cab6f]::sys::backtrace::__rust_end_short_backtrace::<std[37ceaa58691cab6f]::panicking::begin_panic<rustc_errors[d612ea0f5ed2633a]::ExplicitBug>::{closure#0}, !>
10: 0x111eda2bc - std[37ceaa58691cab6f]::panicking::begin_panic::<rustc_errors[d612ea0f5ed2633a]::ExplicitBug>
11: 0x111eda688 - <rustc_errors[d612ea0f5ed2633a]::diagnostic::BugAbort as rustc_errors[d612ea0f5ed2633a]::diagnostic::EmissionGuarantee>::emit_producing_guarantee
12: 0x111f52a0c - rustc_middle[208d74889ccb36c1]::util::bug::opt_span_bug_fmt::<rustc_span[a5e3a2783cc054a9]::span_encoding::Span>::{closure#0}
13: 0x10dfac05c - rustc_middle[208d74889ccb36c1]::ty::context::tls::with_opt::<rustc_middle[208d74889ccb36c1]::util::bug::opt_span_bug_fmt<rustc_span[a5e3a2783cc054a9]::span_encoding::Span>::{closure#0}, !>::{closure#0}
14: 0x10dfabb24 - rustc_middle[208d74889ccb36c1]::ty::context::tls::with_context_opt::<rustc_middle[208d74889ccb36c1]::ty::context::tls::with_opt<rustc_middle[208d74889ccb36c1]::util::bug::opt_span_bug_fmt<rustc_span[a5e3a2783cc054a9]::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
15: 0x111f52924 - rustc_middle[208d74889ccb36c1]::util::bug::bug_fmt
16: 0x10de0f14c - <rustc_metadata[d0ea9d5ac5081a7]::rmeta::decoder::cstore_impl::provide_cstore_hooks::{closure#0} as core[1e83a543c1a720ad]::ops::function::FnOnce<(rustc_middle[208d74889ccb36c1]::ty::context::TyCtxt, rustc_span[a5e3a2783cc054a9]::def_id::DefPathHash, rustc_span[a5e3a2783cc054a9]::def_id::StableCrateId)>>::call_once
17: 0x10dfbca7c - <rustc_middle[208d74889ccb36c1]::ty::context::TyCtxt>::def_path_hash_to_def_id
18: 0x10e9a1de0 - rustc_query_impl[77ea9433992fe932]::plumbing::force_from_dep_node::<rustc_query_impl[77ea9433992fe932]::DynamicConfig<rustc_data_structures[8d3fb60ec084691e]::vec_cache::VecCache<rustc_hir[288004163cc03f2c]::hir_id::OwnerId, rustc_middle[208d74889ccb36c1]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[333456b6d0746410]::dep_graph::graph::DepNodeIndex>, false, false, false>>
19: 0x10e928bd0 - <rustc_query_impl[77ea9433992fe932]::plumbing::query_callback<rustc_query_impl[77ea9433992fe932]::query_impl::hir_attr_map::QueryType>::{closure#0} as core[1e83a543c1a720ad]::ops::function::FnOnce<(rustc_middle[208d74889ccb36c1]::ty::context::TyCtxt, rustc_query_system[333456b6d0746410]::dep_graph::dep_node::DepNode, rustc_query_system[333456b6d0746410]::dep_graph::serialized::SerializedDepNodeIndex)>>::call_once
20: 0x10e734d94 - <rustc_query_system[333456b6d0746410]::dep_graph::graph::DepGraphData<rustc_middle[208d74889ccb36c1]::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl[77ea9433992fe932]::plumbing::QueryCtxt>
21: 0x10e734b70 - <rustc_query_system[333456b6d0746410]::dep_graph::graph::DepGraphData<rustc_middle[208d74889ccb36c1]::dep_graph::DepsType>>::try_mark_green::<rustc_query_impl[77ea9433992fe932]::plumbing::QueryCtxt>
22: 0x10e768ca4 - rustc_query_system[333456b6d0746410]::query::plumbing::ensure_must_run::<rustc_query_impl[77ea9433992fe932]::DynamicConfig<rustc_query_system[333456b6d0746410]::query::caches::SingleCache<rustc_middle[208d74889ccb36c1]::query::erase::Erased<[u8; 32usize]>>, false, false, false>, rustc_query_impl[77ea9433992fe932]::plumbing::QueryCtxt>
23: 0x10ea07818 - rustc_query_impl[77ea9433992fe932]::query_impl::entry_fn::get_query_incr::__rust_end_short_backtrace
24: 0x10dbe567c - rustc_interface[619ac9f988dd2698]::passes::run_required_analyses
25: 0x10dbe7a78 - rustc_interface[619ac9f988dd2698]::passes::analysis
26: 0x10e9aa8ec - rustc_query_impl[77ea9433992fe932]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[77ea9433992fe932]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[208d74889ccb36c1]::query::erase::Erased<[u8; 0usize]>>
27: 0x10e783d10 - rustc_query_system[333456b6d0746410]::query::plumbing::try_execute_query::<rustc_query_impl[77ea9433992fe932]::DynamicConfig<rustc_query_system[333456b6d0746410]::query::caches::SingleCache<rustc_middle[208d74889ccb36c1]::query::erase::Erased<[u8; 0usize]>>, false, false, false>, rustc_query_impl[77ea9433992fe932]::plumbing::QueryCtxt, true>
28: 0x10e9b6a30 - rustc_query_impl[77ea9433992fe932]::query_impl::analysis::get_query_incr::__rust_end_short_backtrace
29: 0x10d29c8c0 - rustc_interface[619ac9f988dd2698]::passes::create_and_enter_global_ctxt::<core[1e83a543c1a720ad]::option::Option<rustc_interface[619ac9f988dd2698]::queries::Linker>, rustc_driver_impl[fe1bcf639e75a35c]::run_compiler::{closure#0}::{closure#2}>
30: 0x10d2a9f8c - rustc_interface[619ac9f988dd2698]::interface::run_compiler::<(), rustc_driver_impl[fe1bcf639e75a35c]::run_compiler::{closure#0}>::{closure#1}
31: 0x10d29e334 - std[37ceaa58691cab6f]::sys::backtrace::__rust_begin_short_backtrace::<rustc_interface[619ac9f988dd2698]::util::run_in_thread_with_globals<rustc_interface[619ac9f988dd2698]::util::run_in_thread_pool_with_globals<rustc_interface[619ac9f988dd2698]::interface::run_compiler<(), rustc_driver_impl[fe1bcf639e75a35c]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>
32: 0x10d2ac2b8 - <<std[37ceaa58691cab6f]::thread::Builder>::spawn_unchecked_<rustc_interface[619ac9f988dd2698]::util::run_in_thread_with_globals<rustc_interface[619ac9f988dd2698]::util::run_in_thread_pool_with_globals<rustc_interface[619ac9f988dd2698]::interface::run_compiler<(), rustc_driver_impl[fe1bcf639e75a35c]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core[1e83a543c1a720ad]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
33: 0x10f23fe64 - std::sys::pal::unix::thread::Thread::new::thread_start::h87df50f049a92661
34: 0x19ff40c08 - __pthread_cond_wait
note: we would appreciate a bug report: https://github.com/rust-lang/rust-clippy/issues/new?template=ice.yml
note: rustc 1.90.0 (1159e78c4 2025-09-14) running on aarch64-apple-darwin
note: compiler flags: -C embed-bitcode=no -C debuginfo=2 -C split-debuginfo=unpacked -C incremental=[REDACTED]
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
note: Clippy version: clippy 0.1.90 (1159e78c47 2025-09-14)
there was a panic while trying to force a dep node
try_mark_green dep node stack:
#0 entry_fn(0-0)
end of try_mark_green dep node stack
error: could not compile `api-server` (lib test)
Caused by:
process didn't exit successfully: `/Users/toddgriffin/.rustup/toolchains/stable-aarch64-apple-darwin/bin/clippy-driver /Users/toddgriffin/.rustup/toolchains/stable-aarch64-apple-darwin/bin/rustc --crate-name api_server --edition=2024 api_server/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=244 --emit=dep-info,metadata -C embed-bitcode=no -C debuginfo=2 -C split-debuginfo=unpacked '--deny=clippy::suspicious' '--deny=clippy::style' '--deny=clippy::perf' '--deny=clippy::pedantic' '--deny=clippy::correctness' '--deny=clippy::complexity' '--deny=clippy::cargo' '--deny=clippy::all' --forbid=unsafe_code '--allow=clippy::nursery' '--allow=clippy::multiple_crate_versions' --test --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values())' -C metadata=136b321c869c96a2 -C extra-filename=-a5e4630fb0ece944 --out-dir /Users/toddgriffin/Documents/code/minesweeper-royale/target/debug/deps -C incremental=/Users/toddgriffin/Documents/code/minesweeper-royale/target/debug/incremental -L dependency=/Users/toddgriffin/Documents/code/minesweeper-royale/target/debug/deps --extern argon2=/Users/toddgriffin/Documents/code/minesweeper-royale/target/debug/deps/libargon2-b2244a78d953c732.rmeta --extern axum=/Users/toddgriffin/Documents/code/minesweeper-royale/target/debug/deps/libaxum-c9c1e314dd6da03c.rmeta --extern axum_extra=/Users/toddgriffin/Documents/code/minesweeper-royale/target/debug/deps/libaxum_extra-0b90ff196066592b.rmeta --extern chrono=/Users/toddgriffin/Documents/code/minesweeper-royale/target/debug/deps/libchrono-577113b5950a3417.rmeta --extern common=/Users/toddgriffin/Documents/code/minesweeper-royale/target/debug/deps/libcommon-525b3ce172a22c1f.rmeta --extern futures=/Users/toddgriffin/Documents/code/minesweeper-royale/target/debug/deps/libfutures-64d58a36928a8b91.rmeta --extern futures_util=/Users/toddgriffin/Documents/code/minesweeper-royale/target/debug/deps/libfutures_util-fc854cedc374772f.rmeta --extern plausible_rs=/Users/toddgriffin/Documents/code/minesweeper-royale/target/debug/deps/libplausible_rs-e1d59bda6cec2a34.rmeta --extern rand=/Users/toddgriffin/Documents/code/minesweeper-royale/target/debug/deps/librand-5929212cf2ebd44c.rmeta --extern reqwest=/Users/toddgriffin/Documents/code/minesweeper-royale/target/debug/deps/libreqwest-594967db12068291.rmeta --extern sentry=/Users/toddgriffin/Documents/code/minesweeper-royale/target/debug/deps/libsentry-fff73404a4905ee8.rmeta --extern serde=/Users/toddgriffin/Documents/code/minesweeper-royale/target/debug/deps/libserde-dcca95c314d7bfb8.rmeta --extern serde_json=/Users/toddgriffin/Documents/code/minesweeper-royale/target/debug/deps/libserde_json-6eabf48ed5722ef1.rmeta --extern sitemap_rs=/Users/toddgriffin/Documents/code/minesweeper-royale/target/debug/deps/libsitemap_rs-e088f7a94292baf1.rmeta --extern sqlx=/Users/toddgriffin/Documents/code/minesweeper-royale/target/debug/deps/libsqlx-878d5a143c0abff8.rmeta --extern tokio=/Users/toddgriffin/Documents/code/minesweeper-royale/target/debug/deps/libtokio-39b73f77bb4aaade.rmeta --extern tokio_tungstenite=/Users/toddgriffin/Documents/code/minesweeper-royale/target/debug/deps/libtokio_tungstenite-7894bfdfd8ff5c21.rmeta --extern tower=/Users/toddgriffin/Documents/code/minesweeper-royale/target/debug/deps/libtower-f1b32f7c9c1adec1.rmeta --extern tower_http=/Users/toddgriffin/Documents/code/minesweeper-royale/target/debug/deps/libtower_http-b258982a05cdbb47.rmeta --extern tracing=/Users/toddgriffin/Documents/code/minesweeper-royale/target/debug/deps/libtracing-57797e3531a18bb5.rmeta --extern tracing_subscriber=/Users/toddgriffin/Documents/code/minesweeper-royale/target/debug/deps/libtracing_subscriber-306019f8ea98b0ca.rmeta --extern uuid=/Users/toddgriffin/Documents/code/minesweeper-royale/target/debug/deps/libuuid-0cf593e6c89a3b37.rmeta --extern webserver_base=/Users/toddgriffin/Documents/code/minesweeper-royale/target/debug/deps/libwebserver_base-67492550133e741e.rmeta --extern websoc_kit=/Users/toddgriffin/Documents/code/minesweeper-royale/target/debug/deps/libwebsoc_kit-822f57d285536856.rmeta --extern xml_builder=/Users/toddgriffin/Documents/code/minesweeper-royale/target/debug/deps/libxml_builder-b8502eeb4b3f3f71.rmeta -L native=/Users/toddgriffin/Documents/code/minesweeper-royale/target/debug/build/ring-82e547c97e2229be/out -L native=/Users/toddgriffin/Documents/code/minesweeper-royale/target/debug/build/zstd-sys-5221a0f44a1238f9/out` (exit status: 101)
Metadata
Metadata
Assignees
Labels
C-bugCategory: Clippy is not doing the correct thingCategory: Clippy is not doing the correct thingI-ICEIssue: Clippy panicked, giving an Internal Compilation Error (ICE) ❄️Issue: Clippy panicked, giving an Internal Compilation Error (ICE) ❄️