Skip to content

Unexpected panic during Clippy run #17867

Open

Description

@torkelrogstad

Summary

I have no idea what happened. It was on this CI run, so you should have decent data available. https://github.com/LayerTwo-Labs/bip300301_enforcer/actions/runs/38249401608/job/114811487456?pr=666

Version

rustc 1.101.0-nightly (080cc2714 2026-10-11)

Error output

Backtrace

thread 'rustc' (7231) panicked at /rustc-dev/080cc27146389dbb5c8772c476b1937be9c6110f/compiler/rustc_hir_analysis/src/check/compare_impl_item.rs:2144:64:
DefId::expect_local: `DefId(42:62 ~ cusf_enforcer_mempool[ebd4]::cusf_block_producer::CusfBlockProducer::initial_block_template::COINBASE_TXN)` isn't local
stack backtrace:
 0:     0x7f7630c0f256 - <<std[b20254cca6d16845]::sys::backtrace::BacktraceLock>::print::DisplayBacktrace as core[b6f79c0f45e6c5ec]::fmt::Display>::fmt
 1:     0x7f7631206ddf - core[b6f79c0f45e6c5ec]::fmt::write
 2:     0x7f7630c2591c - <std[b20254cca6d16845]::sys::stdio::unix::Stderr as core[b6f79c0f45e6c5ec]::io::write::Write>::write_fmt
 3:     0x7f7630be04ca - std[b20254cca6d16845]::panicking::default_hook::{closure#0}
 4:     0x7f7630c02a83 - std[b20254cca6d16845]::panicking::default_hook
 5:     0x7f762f973f65 - std[b20254cca6d16845]::panicking::update_hook::<alloc[5474da6ea92f6cbf]::boxed::Box<rustc_driver_impl[2825a34e80769f13]::install_ice_hook::{closure#1}>>::{closure#0}
 6:     0x7f7630c02f22 - std[b20254cca6d16845]::panicking::panic_with_hook
 7:     0x7f7630be0582 - std[b20254cca6d16845]::panicking::panic_handler::{closure#0}
 8:     0x7f7630bd8d69 - std[b20254cca6d16845]::sys::backtrace::__rust_end_short_backtrace::<std[b20254cca6d16845]::panicking::panic_handler::{closure#0}, !>
 9:     0x7f7630be215d - __rustc[51506b18db8c06ec]::rust_begin_unwind
10:     0x7f762d62cc5c - core[b6f79c0f45e6c5ec]::panicking::panic_fmt
11:     0x7f76319b9269 - rustc_hir_analysis[7c503ccd7f47fd81]::check::compare_impl_item::compare_const_generic_param_types
12:     0x7f76319d4e4f - rustc_hir_analysis[7c503ccd7f47fd81]::check::compare_impl_item::compare_impl_item
13:     0x7f76319d22d7 - rustc_query_impl[f4aec47940d3740b]::query_vtables::compare_impl_item::invoke_provider_fn::__rust_begin_short_backtrace
14:     0x7f7632003f6f - rustc_query_impl[f4aec47940d3740b]::execution::try_execute_query::<rustc_data_structures[39b521baf56ffe90]::vec_cache::VecCache<rustc_span[bfc4b5c33ea761e4]::def_id::LocalDefId, rustc_middle[5b1b4d20ed3c18ba]::query::erase::ErasedData<[u8; 1usize]>, rustc_middle[5b1b4d20ed3c18ba]::dep_graph::graph::DepNodeIndex>, false>
15:     0x7f7632003c15 - rustc_query_impl[f4aec47940d3740b]::query_vtables::compare_impl_item::execute_query_non_incr::__rust_end_short_backtrace
16:     0x7f763200712c - rustc_hir_analysis[7c503ccd7f47fd81]::check::check::check_item_type
17:     0x7f7632004b9c - rustc_hir_analysis[7c503ccd7f47fd81]::check::wfcheck::check_well_formed
18:     0x7f7632004b69 - rustc_query_impl[f4aec47940d3740b]::query_vtables::check_well_formed::invoke_provider_fn::__rust_begin_short_backtrace
19:     0x7f7632003f6f - rustc_query_impl[f4aec47940d3740b]::execution::try_execute_query::<rustc_data_structures[39b521baf56ffe90]::vec_cache::VecCache<rustc_span[bfc4b5c33ea761e4]::def_id::LocalDefId, rustc_middle[5b1b4d20ed3c18ba]::query::erase::ErasedData<[u8; 1usize]>, rustc_middle[5b1b4d20ed3c18ba]::dep_graph::graph::DepNodeIndex>, false>
20:     0x7f7632003cd5 - rustc_query_impl[f4aec47940d3740b]::query_vtables::check_well_formed::execute_query_non_incr::__rust_end_short_backtrace
21:     0x7f76320015d1 - rustc_hir_analysis[7c503ccd7f47fd81]::check::wfcheck::check_type_wf
22:     0x7f76320014cd - rustc_query_impl[f4aec47940d3740b]::query_vtables::check_type_wf::invoke_provider_fn::__rust_begin_short_backtrace
23:     0x7f7632343dc4 - rustc_query_impl[f4aec47940d3740b]::execution::try_execute_query::<rustc_middle[5b1b4d20ed3c18ba]::query::caches::SingleCache<rustc_middle[5b1b4d20ed3c18ba]::query::erase::ErasedData<[u8; 1usize]>>, false>
24:     0x7f7632343b6d - rustc_query_impl[f4aec47940d3740b]::query_vtables::check_type_wf::execute_query_non_incr::__rust_end_short_backtrace
25:     0x7f763187dafb - rustc_hir_analysis[7c503ccd7f47fd81]::check_crate
26:     0x7f76318073b9 - rustc_interface[8c465a77289bc568]::passes::analysis
27:     0x7f7632349c87 - rustc_query_impl[f4aec47940d3740b]::execution::try_execute_query::<rustc_middle[5b1b4d20ed3c18ba]::query::caches::SingleCache<rustc_middle[5b1b4d20ed3c18ba]::query::erase::ErasedData<[u8; 0usize]>>, false>
28:     0x7f7632349a6b - rustc_query_impl[f4aec47940d3740b]::query_vtables::analysis::execute_query_non_incr::__rust_end_short_backtrace
29:     0x7f76324d134e - rustc_interface[8c465a77289bc568]::interface::run_compiler::<(), rustc_driver_impl[2825a34e80769f13]::compiler_entrypoint::{closure#0}>::{closure#2}
30:     0x7f76324fb802 - std[b20254cca6d16845]::sys::backtrace::__rust_begin_short_backtrace::<rustc_interface[8c465a77289bc568]::util::run_in_thread_with_globals<rustc_interface[8c465a77289bc568]::util::run_in_thread_pool_with_globals<rustc_interface[8c465a77289bc568]::interface::run_compiler<(), rustc_driver_impl[2825a34e80769f13]::compiler_entrypoint::{closure#0}>::{closure#2}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>
31:     0x7f76324fb5ad - <std[b20254cca6d16845]::thread::lifecycle::spawn_unchecked<rustc_interface[8c465a77289bc568]::util::run_in_thread_with_globals<rustc_interface[8c465a77289bc568]::util::run_in_thread_pool_with_globals<rustc_interface[8c465a77289bc568]::interface::run_compiler<(), rustc_driver_impl[2825a34e80769f13]::compiler_entrypoint::{closure#0}>::{closure#2}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core[b6f79c0f45e6c5ec]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
32:     0x7f76324f685b - <std[b20254cca6d16845]::sys::thread::unix::Thread>::new::thread_start
33:     0x7f762b49cb84 - <unknown>
34:     0x7f762b529ecc - <unknown>
35:                0x0 - <unknown>

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 `/home/runner/work/bip300301_enforcer/bip300301_enforcer/rustc-ice-2026-10-12T12_31_39-7230.txt` to your bug report

note: rustc 1.101.0-nightly (080cc2714 2026-10-11) running on x86_64-unknown-linux-gnu

note: compiler flags: --crate-type lib -C embed-bitcode=no -C debuginfo=2

note: some of the compiler flags provided by cargo are hidden

query stack during panic:
#0 [compare_impl_item] checking assoc item `block_producer::<impl at lib/block_producer/mod.rs:295:1: 295:41>::initial_block_template::{anon_assoc#0}` is compatible with trait definition
#1 [check_well_formed] checking that `block_producer::<impl at lib/block_producer/mod.rs:295:1: 295:41>` is well-formed
... and 2 other queries... use `env RUST_BACKTRACE=1` to see the full query stack
note: Clippy version: clippy 0.1.101 (080cc27146 2026-10-11)

Activity

  1. added
    C-bugCategory: Clippy is not doing the correct thing
    I-ICEIssue: Clippy panicked, giving an Internal Compilation Error (ICE) ❄️
    on Oct 12, 2026
  2. Samyra312007 commented on Oct 12, 2026

    @Samyra312007

    Respected Maintainers, If this issue is open then i would like to work on this issue.

  3. Jarcho commented on Oct 12, 2026

    @Jarcho
    Contributor

    I added the backtrace and version to issue, but please add it next time. Github action logs are deleted automatically after enough time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: Clippy is not doing the correct thingI-ICEIssue: Clippy panicked, giving an Internal Compilation Error (ICE) ❄️

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions