Skip to content

Error: A dep graph node (mir_drops_elaborated_and_const_checked) does not have an unique index. #146814

@joshtriplett

Description

@joshtriplett

I hit the following incremental-related ICE while building rustc itself:

thread 'rustc' panicked at /rustc-dev/788da80fcfcef3f34c90def5baa32813e39a1a41/compiler/rustc_query_system/src/dep_graph/serialized.rs:284:21: Error: A dep graph node (mir_drops_elaborated_and_const_checked) does not have an unique index. Running a clean build on a nightly compiler with `-Z incremental-verify-ich` can help narrow down the issue for reporting. A clean build may also work around the issue. DepNode: DepKind { variant: 57 }(225070c9ea282433-4f6d381140e0055b) stack backtrace: 0: __rustc::rust_begin_unwind 1: core::panicking::panic_fmt 2: rustc_incremental::persist::load::setup_dep_graph 3: rustc_interface::interface::run_compiler::<(), rustc_driver_impl::run_compiler::{closure#0}>::{closure#1} 4: <rustc_thread_pool::job::StackJob<rustc_thread_pool::latch::LatchRef<rustc_thread_pool::latch::LockLatch>, <rustc_thread_pool::registry::Registry>::in_worker_cold<<rustc_thread_pool::thread_pool::ThreadPool>::install<rustc_interface::util::run_in_thread_pool_with_globals<rustc_interface::interface::run_compiler<(), rustc_driver_impl::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#5}::{closure#0}::{closure#1}::{closure#0}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()> as rustc_thread_pool::job::Job>::execute 5: <rustc_thread_pool::registry::WorkerThread>::wait_or_steal_until_cold 6: <rustc_thread_pool::registry::ThreadBuilder>::run 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/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md note: please make sure that you have updated to the latest nightly note: please attach the file at `/home/josh/src/rust/rustc-ice-2025-09-20T16_14_59-206721.txt` to your bug report note: compiler flags: --crate-type lib -C opt-level=3 -C embed-bitcode=no -C debuginfo=line-tables-only -C debug-assertions=on -C overflow-checks=off -C incremental=[REDACTED] -C symbol-mangling-version=v0 -Z unstable-options -Z threads=12 -Z macro-backtrace -C split-debuginfo=off -C force-frame-pointers=true -C llvm-args=-import-instr-limit=10 -C link-args=-Wl,-z,origin -C link-args=-Wl,-rpath,$ORIGIN/../lib -Z on-broken-pipe=kill -C lto=off -Z binary-dep-depinfo -Z tls-model=initial-exec -Z force-unstable-if-unmarked note: some of the compiler flags provided by cargo are hidden query stack during panic: end of query stack error: could not compile `rustc_lint_defs` (lib) Caused by: process didn't exit successfully: `/home/josh/src/rust/build/bootstrap/debug/rustc /home/josh/src/rust/build/bootstrap/debug/rustc --crate-name rustc_lint_defs --edition=2024 compiler/rustc_lint_defs/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=191 --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C debuginfo=line-tables-only -C debug-assertions=on -C overflow-checks=off --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values())' -C metadata=13c1e6855eff47d8 -C extra-filename=-5f32a308ff437805 --out-dir /home/josh/src/rust/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps --target x86_64-unknown-linux-gnu -C incremental=/home/josh/src/rust/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/incremental -L dependency=/home/josh/src/rust/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps -L dependency=/home/josh/src/rust/build/x86_64-unknown-linux-gnu/stage1-rustc/release/deps --extern rustc_ast=/home/josh/src/rust/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_ast-11b927e9ccb28e0e.rmeta --extern rustc_data_structures=/home/josh/src/rust/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_data_structures-ffd300011c7d443e.rmeta --extern rustc_error_messages=/home/josh/src/rust/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_error_messages-2a91554d4dfd44a4.rmeta --extern rustc_hir_id=/home/josh/src/rust/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_hir_id-f431ebbb28aada14.rmeta --extern rustc_macros=/home/josh/src/rust/build/x86_64-unknown-linux-gnu/stage1-rustc/release/deps/librustc_macros-d73ac560a7c61575.so --extern rustc_serialize=/home/josh/src/rust/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_serialize-c37f20452ea0b3ae.rmeta --extern rustc_span=/home/josh/src/rust/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_span-4e3b987d9504d3df.rmeta --extern serde=/home/josh/src/rust/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/libserde-2548d0b1366f5ae2.rmeta --cfg=bootstrap --cfg=windows_raw_dylib -Csymbol-mangling-version=v0 -Zunstable-options -Zthreads=12 '--check-cfg=cfg(bootstrap)' -Zmacro-backtrace -Csplit-debuginfo=off -Cforce-frame-pointers=true -Cllvm-args=-import-instr-limit=10 -Clink-args=-Wl,-z,origin '-Clink-args=-Wl,-rpath,$ORIGIN/../lib' -Alinker-messages -Zon-broken-pipe=kill -Clto=off -Z binary-dep-depinfo -L native=/home/josh/src/rust/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/build/psm-533227d54da62f09/out -L native=/home/josh/src/rust/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/build/blake3-3b6a7a54439c9561/out -L native=/home/josh/src/rust/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/build/blake3-3b6a7a54439c9561/out` (exit status: 101) 

Contents of rustc-ice-2025-09-20T16_14_59-206721.txt:

thread 'rustc' panicked at /rustc-dev/788da80fcfcef3f34c90def5baa32813e39a1a41/compiler/rustc_query_system/src/dep_graph/serialized.rs:284:21: Error: A dep graph node (mir_drops_elaborated_and_const_checked) does not have an unique index. Running a clean build on a nightly compiler with `-Z incremental-verify-ich` can help narrow down the issue for reporting. A clean build may also work around the issue. DepNode: DepKind { variant: 57 }(225070c9ea282433-4f6d381140e0055b) stack backtrace: 0: 0x7fed4cbeccd5 - std::backtrace::Backtrace::create::h064876dbe570bf20 1: 0x7fed4cbecc25 - std::backtrace::Backtrace::force_capture::h0b44c57207aa9ff5 2: 0x7fed4bc611a0 - std[a9df2778e0f5b035]::panicking::update_hook::<alloc[dedd28160d83c882]::boxed::Box<rustc_driver_impl[109a60bf5b00c696]::install_ice_hook::{closure#1}>>::{closure#0} 3: 0x7fed4cc06e8e - std::panicking::rust_panic_with_hook::h5e4e82e4fbe1afea 4: 0x7fed4cc06b8a - std::panicking::begin_panic_handler::{{closure}}::hac438a44d6fdf1f3 5: 0x7fed4cc03209 - std::sys::backtrace::__rust_end_short_backtrace::h6d20582ba318b55b 6: 0x7fed4cc0686d - __rustc[bf3ed36a96bebe4f]::rust_begin_unwind 7: 0x7fed492d1760 - core::panicking::panic_fmt::h906a8e577b14db1c 8: 0x7fed4e7fa7da - rustc_incremental[d517105082367567]::persist::load::setup_dep_graph 9: 0x7fed4e71c0b3 - rustc_interface[a6d5afabee272bf4]::interface::run_compiler::<(), rustc_driver_impl[109a60bf5b00c696]::run_compiler::{closure#0}>::{closure#1} 10: 0x7fed4bc73192 - <rustc_thread_pool[a47af18b332d8806]::job::StackJob<rustc_thread_pool[a47af18b332d8806]::latch::LatchRef<rustc_thread_pool[a47af18b332d8806]::latch::LockLatch>, <rustc_thread_pool[a47af18b332d8806]::registry::Registry>::in_worker_cold<<rustc_thread_pool[a47af18b332d8806]::thread_pool::ThreadPool>::install<rustc_interface[a6d5afabee272bf4]::util::run_in_thread_pool_with_globals<rustc_interface[a6d5afabee272bf4]::interface::run_compiler<(), rustc_driver_impl[109a60bf5b00c696]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#5}::{closure#0}::{closure#1}::{closure#0}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()> as rustc_thread_pool[a47af18b332d8806]::job::Job>::execute 11: 0x7fed4c9228cf - <rustc_thread_pool[a47af18b332d8806]::registry::WorkerThread>::wait_or_steal_until_cold 12: 0x7fed4c920191 - <rustc_thread_pool[a47af18b332d8806]::registry::ThreadBuilder>::run 13: 0x7fed4bc5954d - std[a9df2778e0f5b035]::sys::backtrace::__rust_begin_short_backtrace::<<rustc_thread_pool[a47af18b332d8806]::ThreadPoolBuilder>::build_scoped<rustc_interface[a6d5afabee272bf4]::util::run_in_thread_pool_with_globals<rustc_interface[a6d5afabee272bf4]::interface::run_compiler<(), rustc_driver_impl[109a60bf5b00c696]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#5}::{closure#0}::{closure#0}, rustc_interface[a6d5afabee272bf4]::util::run_in_thread_pool_with_globals<rustc_interface[a6d5afabee272bf4]::interface::run_compiler<(), rustc_driver_impl[109a60bf5b00c696]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#5}::{closure#0}::{closure#1}, ()>::{closure#0}::{closure#0}::{closure#0}, ()> 14: 0x7fed4bc65ce2 - <<std[a9df2778e0f5b035]::thread::Builder>::spawn_unchecked_<<rustc_thread_pool[a47af18b332d8806]::ThreadPoolBuilder>::build_scoped<rustc_interface[a6d5afabee272bf4]::util::run_in_thread_pool_with_globals<rustc_interface[a6d5afabee272bf4]::interface::run_compiler<(), rustc_driver_impl[109a60bf5b00c696]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#5}::{closure#0}::{closure#0}, rustc_interface[a6d5afabee272bf4]::util::run_in_thread_pool_with_globals<rustc_interface[a6d5afabee272bf4]::interface::run_compiler<(), rustc_driver_impl[109a60bf5b00c696]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#5}::{closure#0}::{closure#1}, ()>::{closure#0}::{closure#0}::{closure#0}, ()>::{closure#1} as core[588c2d355c3eadae]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} 15: 0x7fed4e57ddc5 - std::sys::pal::unix::thread::Thread::new::thread_start::hc8fa0ad06a8b5176 16: 0x7fed47e87b7b - start_thread at ./nptl/pthread_create.c:448:8 17: 0x7fed47f057b8 - __GI___clone3 at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:78:0 18: 0x0 - <unknown> rustc version: 1.90.0-beta.1 (788da80fc 2025-08-04) platform: x86_64-unknown-linux-gnu 

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-incr-compArea: Incremental compilationC-bugCategory: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions