-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Open
Labels
-Zshare-genericsUnstable options: Share generic instantiations.Unstable options: Share generic instantiations.A-craneliftThings relevant to the [future] cranelift backendThings relevant to the [future] cranelift backendA-incr-compArea: Incremental compilationArea: Incremental compilationA-query-systemArea: The rustc query system (https://rustc-dev-guide.rust-lang.org/query.html)Area: The rustc query system (https://rustc-dev-guide.rust-lang.org/query.html)C-bugCategory: This is a bug.Category: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️S-needs-reproStatus: This issue has no reproduction and needs a reproduction to make progress.Status: This issue has no reproduction and needs a reproduction to make progress.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.requires-nightlyThis issue requires a nightly compiler in some way.This issue requires a nightly compiler in some way.
Description
No idea how it came into existence, but people in rust discord said it's better to submit the bug.
The code can be found here, but I only stumbled on it once so it is not reproducible at least for me.
Version info:
rustc 1.89.0-nightly (c68340350 2025-06-18)
binary: rustc
commit-hash: c68340350c78eea402c4a85f8d9c1b7d3d607635
commit-date: 2025-06-18
host: x86_64-unknown-linux-gnu
release: 1.89.0-nightly
LLVM version: 20.1.7
Compiler flags:
--crate-type lib -C opt-level=1 -C embed-bitcode=no -Z codegen-backend=cranelift -C debuginfo=2 -C debug-assertions=on -C linker=clang -C incremental=[REDACTED] -Z unstable-options -C link-arg=-fuse-ld=mold -Z share-generics=y -Z threads=0
Compiler output:
thread 'rustc' panicked at /rustc-dev/c68340350c78eea402c4a85f8d9c1b7d3d607635/compiler/rustc_query_system/src/dep_graph/graph.rs:43:1:
assertion failed: value <= 0xFFFF_FF00
Full compiler output
thread 'rustc' panicked at /rustc-dev/c68340350c78eea402c4a85f8d9c1b7d3d607635/compiler/rustc_query_system/src/dep_graph/graph.rs:43:1:
assertion failed: value <= 0xFFFF_FF00
stack backtrace:
0: 0x7a7d6bed9b75 - std::backtrace::Backtrace::create::he5af7a5d59a40e3c
1: 0x7a7d6bed9ac5 - std::backtrace::Backtrace::force_capture::hcea9d7ed40ac797f
2: 0x7a7d6afe5e45 - std[f465230902baf24e]::panicking::update_hook::<alloc[5a24e98c206f3295]::boxed::Box<rustc_driver_impl[f7eaba4e4346ab0a]::install_ice_hook::{closure#1}>>::{closure#0}
3: 0x7a7d6bef3d63 - std::panicking::rust_panic_with_hook::hccb645e1224c3ca9
4: 0x7a7d6bef3a26 - std::panicking::begin_panic_handler::{{closure}}::h08eda9fea8547d73
5: 0x7a7d6beeff89 - std::sys::backtrace::__rust_end_short_backtrace::h6189b6d534638e87
6: 0x7a7d6bef373d - __rustc[f040de39e224b0e1]::rust_begin_unwind
7: 0x7a7d686987c0 - core::panicking::panic_fmt::hb65b230fa9b6abb2
8: 0x7a7d6880c97c - core::panicking::panic::h8ea9db73ed4f9b31
9: 0x7a7d6c625d9f - <rustc_query_system[aa99c3eb613fb748]::dep_graph::graph::DepGraphData<rustc_middle[cb74f7c7c36a888d]::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl[48702a16f9c597ba]::plumbing::QueryCtxt>
10: 0x7a7d6c6257cc - <rustc_query_system[aa99c3eb613fb748]::dep_graph::graph::DepGraphData<rustc_middle[cb74f7c7c36a888d]::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl[48702a16f9c597ba]::plumbing::QueryCtxt>
11: 0x7a7d6c6257cc - <rustc_query_system[aa99c3eb613fb748]::dep_graph::graph::DepGraphData<rustc_middle[cb74f7c7c36a888d]::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl[48702a16f9c597ba]::plumbing::QueryCtxt>
12: 0x7a7d6c7bd3fe - rustc_query_system[aa99c3eb613fb748]::query::plumbing::ensure_must_run::<rustc_query_impl[48702a16f9c597ba]::DynamicConfig<rustc_data_structures[99add3e81104b44c]::vec_cache::VecCache<rustc_span[386b88b018424990]::def_id::LocalDefId, rustc_middle[cb74f7c7c36a888d]::query::erase::Erased<[u8; 0usize]>, rustc_query_system[aa99c3eb613fb748]::dep_graph::graph::DepNodeIndex>, false, false, false>, rustc_query_impl[48702a16f9c597ba]::plumbing::QueryCtxt>
13: 0x7a7d6c7bd758 - rustc_query_impl[48702a16f9c597ba]::query_impl::mir_drops_elaborated_and_const_checked::get_query_incr::__rust_end_short_backtrace
14: 0x7a7d6cf64586 - <rustc_middle[cb74f7c7c36a888d]::ty::context::TyCtxt>::par_hir_body_owners::<rustc_interface[df2f81cb2296ca6c]::passes::run_required_analyses::{closure#1}::{closure#0}>::{closure#0}
15: 0x7a7d6b3cf63c - rustc_data_structures[99add3e81104b44c]::sync::parallel::par_slice::par_rec::<&rustc_span[386b88b018424990]::def_id::LocalDefId, rustc_data_structures[99add3e81104b44c]::sync::parallel::par_for_each_in<&rustc_span[386b88b018424990]::def_id::LocalDefId, &[rustc_span[386b88b018424990]::def_id::LocalDefId], <rustc_middle[cb74f7c7c36a888d]::ty::context::TyCtxt>::par_hir_body_owners<rustc_interface[df2f81cb2296ca6c]::passes::run_required_analyses::{closure#1}::{closure#0}>::{closure#0}>::{closure#0}::{closure#0}>
16: 0x7a7d6b3e6318 - rayon_core[91bb91cfcd883918]::join::join_context::<rayon_core[91bb91cfcd883918]::join::join::call<(), rustc_data_structures[99add3e81104b44c]::sync::parallel::par_slice::par_rec<&rustc_span[386b88b018424990]::def_id::LocalDefId, rustc_data_structures[99add3e81104b44c]::sync::parallel::par_for_each_in<&rustc_span[386b88b018424990]::def_id::LocalDefId, &[rustc_span[386b88b018424990]::def_id::LocalDefId], <rustc_middle[cb74f7c7c36a888d]::ty::context::TyCtxt>::par_hir_body_owners<rustc_interface[df2f81cb2296ca6c]::passes::run_required_analyses::{closure#1}::{closure#0}>::{closure#0}>::{closure#0}::{closure#0}>::{closure#1}>::{closure#0}, rayon_core[91bb91cfcd883918]::join::join::call<(), rustc_data_structures[99add3e81104b44c]::sync::parallel::par_slice::par_rec<&rustc_span[386b88b018424990]::def_id::LocalDefId, rustc_data_structures[99add3e81104b44c]::sync::parallel::par_for_each_in<&rustc_span[386b88b018424990]::def_id::LocalDefId, &[rustc_span[386b88b018424990]::def_id::LocalDefId], <rustc_middle[cb74f7c7c36a888d]::ty::context::TyCtxt>::par_hir_body_owners<rustc_interface[df2f81cb2296ca6c]::passes::run_required_analyses::{closure#1}::{closure#0}>::{closure#0}>::{closure#0}::{closure#0}>::{closure#2}>::{closure#0}, (), ()>::{closure#0}
17: 0x7a7d6b3cf6da - rustc_data_structures[99add3e81104b44c]::sync::parallel::par_slice::par_rec::<&rustc_span[386b88b018424990]::def_id::LocalDefId, rustc_data_structures[99add3e81104b44c]::sync::parallel::par_for_each_in<&rustc_span[386b88b018424990]::def_id::LocalDefId, &[rustc_span[386b88b018424990]::def_id::LocalDefId], <rustc_middle[cb74f7c7c36a888d]::ty::context::TyCtxt>::par_hir_body_owners<rustc_interface[df2f81cb2296ca6c]::passes::run_required_analyses::{closure#1}::{closure#0}>::{closure#0}>::{closure#0}::{closure#0}>
18: 0x7a7d6b400260 - <rayon_core[91bb91cfcd883918]::job::StackJob<rayon_core[91bb91cfcd883918]::latch::SpinLatch, rayon_core[91bb91cfcd883918]::join::join_context::call_b<(), rayon_core[91bb91cfcd883918]::join::join::call<(), rustc_data_structures[99add3e81104b44c]::sync::parallel::par_slice::par_rec<&rustc_span[386b88b018424990]::def_id::LocalDefId, rustc_data_structures[99add3e81104b44c]::sync::parallel::par_for_each_in<&rustc_span[386b88b018424990]::def_id::LocalDefId, &[rustc_span[386b88b018424990]::def_id::LocalDefId], <rustc_middle[cb74f7c7c36a888d]::ty::context::TyCtxt>::par_hir_body_owners<rustc_interface[df2f81cb2296ca6c]::passes::run_required_analyses::{closure#1}::{closure#0}>::{closure#0}>::{closure#0}::{closure#0}>::{closure#2}>::{closure#0}>::{closure#0}, ()> as rayon_core[91bb91cfcd883918]::job::Job>::execute
19: 0x7a7d6aaf540e - <rayon_core[91bb91cfcd883918]::registry::WorkerThread>::wait_until_cold
20: 0x7a7d6b3e63a2 - rayon_core[91bb91cfcd883918]::join::join_context::<rayon_core[91bb91cfcd883918]::join::join::call<(), rustc_data_structures[99add3e81104b44c]::sync::parallel::par_slice::par_rec<&rustc_span[386b88b018424990]::def_id::LocalDefId, rustc_data_structures[99add3e81104b44c]::sync::parallel::par_for_each_in<&rustc_span[386b88b018424990]::def_id::LocalDefId, &[rustc_span[386b88b018424990]::def_id::LocalDefId], <rustc_middle[cb74f7c7c36a888d]::ty::context::TyCtxt>::par_hir_body_owners<rustc_interface[df2f81cb2296ca6c]::passes::run_required_analyses::{closure#1}::{closure#0}>::{closure#0}>::{closure#0}::{closure#0}>::{closure#1}>::{closure#0}, rayon_core[91bb91cfcd883918]::join::join::call<(), rustc_data_structures[99add3e81104b44c]::sync::parallel::par_slice::par_rec<&rustc_span[386b88b018424990]::def_id::LocalDefId, rustc_data_structures[99add3e81104b44c]::sync::parallel::par_for_each_in<&rustc_span[386b88b018424990]::def_id::LocalDefId, &[rustc_span[386b88b018424990]::def_id::LocalDefId], <rustc_middle[cb74f7c7c36a888d]::ty::context::TyCtxt>::par_hir_body_owners<rustc_interface[df2f81cb2296ca6c]::passes::run_required_analyses::{closure#1}::{closure#0}>::{closure#0}>::{closure#0}::{closure#0}>::{closure#2}>::{closure#0}, (), ()>::{closure#0}
21: 0x7a7d6b3cf6da - rustc_data_structures[99add3e81104b44c]::sync::parallel::par_slice::par_rec::<&rustc_span[386b88b018424990]::def_id::LocalDefId, rustc_data_structures[99add3e81104b44c]::sync::parallel::par_for_each_in<&rustc_span[386b88b018424990]::def_id::LocalDefId, &[rustc_span[386b88b018424990]::def_id::LocalDefId], <rustc_middle[cb74f7c7c36a888d]::ty::context::TyCtxt>::par_hir_body_owners<rustc_interface[df2f81cb2296ca6c]::passes::run_required_analyses::{closure#1}::{closure#0}>::{closure#0}>::{closure#0}::{closure#0}>
22: 0x7a7d6b3e62a9 - rayon_core[91bb91cfcd883918]::join::join_context::<rayon_core[91bb91cfcd883918]::join::join::call<(), rustc_data_structures[99add3e81104b44c]::sync::parallel::par_slice::par_rec<&rustc_span[386b88b018424990]::def_id::LocalDefId, rustc_data_structures[99add3e81104b44c]::sync::parallel::par_for_each_in<&rustc_span[386b88b018424990]::def_id::LocalDefId, &[rustc_span[386b88b018424990]::def_id::LocalDefId], <rustc_middle[cb74f7c7c36a888d]::ty::context::TyCtxt>::par_hir_body_owners<rustc_interface[df2f81cb2296ca6c]::passes::run_required_analyses::{closure#1}::{closure#0}>::{closure#0}>::{closure#0}::{closure#0}>::{closure#1}>::{closure#0}, rayon_core[91bb91cfcd883918]::join::join::call<(), rustc_data_structures[99add3e81104b44c]::sync::parallel::par_slice::par_rec<&rustc_span[386b88b018424990]::def_id::LocalDefId, rustc_data_structures[99add3e81104b44c]::sync::parallel::par_for_each_in<&rustc_span[386b88b018424990]::def_id::LocalDefId, &[rustc_span[386b88b018424990]::def_id::LocalDefId], <rustc_middle[cb74f7c7c36a888d]::ty::context::TyCtxt>::par_hir_body_owners<rustc_interface[df2f81cb2296ca6c]::passes::run_required_analyses::{closure#1}::{closure#0}>::{closure#0}>::{closure#0}::{closure#0}>::{closure#2}>::{closure#0}, (), ()>::{closure#0}
23: 0x7a7d6b3cf6da - rustc_data_structures[99add3e81104b44c]::sync::parallel::par_slice::par_rec::<&rustc_span[386b88b018424990]::def_id::LocalDefId, rustc_data_structures[99add3e81104b44c]::sync::parallel::par_for_each_in<&rustc_span[386b88b018424990]::def_id::LocalDefId, &[rustc_span[386b88b018424990]::def_id::LocalDefId], <rustc_middle[cb74f7c7c36a888d]::ty::context::TyCtxt>::par_hir_body_owners<rustc_interface[df2f81cb2296ca6c]::passes::run_required_analyses::{closure#1}::{closure#0}>::{closure#0}>::{closure#0}::{closure#0}>
24: 0x7a7d6b400260 - <rayon_core[91bb91cfcd883918]::job::StackJob<rayon_core[91bb91cfcd883918]::latch::SpinLatch, rayon_core[91bb91cfcd883918]::join::join_context::call_b<(), rayon_core[91bb91cfcd883918]::join::join::call<(), rustc_data_structures[99add3e81104b44c]::sync::parallel::par_slice::par_rec<&rustc_span[386b88b018424990]::def_id::LocalDefId, rustc_data_structures[99add3e81104b44c]::sync::parallel::par_for_each_in<&rustc_span[386b88b018424990]::def_id::LocalDefId, &[rustc_span[386b88b018424990]::def_id::LocalDefId], <rustc_middle[cb74f7c7c36a888d]::ty::context::TyCtxt>::par_hir_body_owners<rustc_interface[df2f81cb2296ca6c]::passes::run_required_analyses::{closure#1}::{closure#0}>::{closure#0}>::{closure#0}::{closure#0}>::{closure#2}>::{closure#0}>::{closure#0}, ()> as rayon_core[91bb91cfcd883918]::job::Job>::execute
25: 0x7a7d6aaf540e - <rayon_core[91bb91cfcd883918]::registry::WorkerThread>::wait_until_cold
26: 0x7a7d6aaf2e21 - <rayon_core[91bb91cfcd883918]::registry::ThreadBuilder>::run
27: 0x7a7d6afdbb7d - std[f465230902baf24e]::sys::backtrace::__rust_begin_short_backtrace::<<rayon_core[91bb91cfcd883918]::ThreadPoolBuilder>::build_scoped<rustc_interface[df2f81cb2296ca6c]::util::run_in_thread_pool_with_globals<rustc_interface[df2f81cb2296ca6c]::interface::run_compiler<(), rustc_driver_impl[f7eaba4e4346ab0a]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#5}::{closure#0}::{closure#0}, rustc_interface[df2f81cb2296ca6c]::util::run_in_thread_pool_with_globals<rustc_interface[df2f81cb2296ca6c]::interface::run_compiler<(), rustc_driver_impl[f7eaba4e4346ab0a]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#5}::{closure#0}::{closure#1}, ()>::{closure#0}::{closure#0}::{closure#0}, ()>
28: 0x7a7d6afea532 - <<std[f465230902baf24e]::thread::Builder>::spawn_unchecked_<<rayon_core[91bb91cfcd883918]::ThreadPoolBuilder>::build_scoped<rustc_interface[df2f81cb2296ca6c]::util::run_in_thread_pool_with_globals<rustc_interface[df2f81cb2296ca6c]::interface::run_compiler<(), rustc_driver_impl[f7eaba4e4346ab0a]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#5}::{closure#0}::{closure#0}, rustc_interface[df2f81cb2296ca6c]::util::run_in_thread_pool_with_globals<rustc_interface[df2f81cb2296ca6c]::interface::run_compiler<(), rustc_driver_impl[f7eaba4e4346ab0a]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#5}::{closure#0}::{closure#1}, ()>::{closure#0}::{closure#0}::{closure#0}, ()>::{closure#1} as core[f335c14d4392cab8]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
29: 0x7a7d6d835083 - std::sys::pal::unix::thread::Thread::new::thread_start::hdee893a02c3d3f2e
30: 0x7a7d6709caa4 - start_thread
at ./nptl/pthread_create.c:447:8
31: 0x7a7d67129c3c - clone3
at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:78:0
32: 0x0 - <unknown>
rustc version: 1.89.0-nightly (c68340350 2025-06-18)
platform: x86_64-unknown-linux-gnu
query stack during panic:
#0 [analysis] running analysis passes on this crate
end of query stack
Metadata
Metadata
Assignees
Labels
-Zshare-genericsUnstable options: Share generic instantiations.Unstable options: Share generic instantiations.A-craneliftThings relevant to the [future] cranelift backendThings relevant to the [future] cranelift backendA-incr-compArea: Incremental compilationArea: Incremental compilationA-query-systemArea: The rustc query system (https://rustc-dev-guide.rust-lang.org/query.html)Area: The rustc query system (https://rustc-dev-guide.rust-lang.org/query.html)C-bugCategory: This is a bug.Category: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️S-needs-reproStatus: This issue has no reproduction and needs a reproduction to make progress.Status: This issue has no reproduction and needs a reproduction to make progress.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.requires-nightlyThis issue requires a nightly compiler in some way.This issue requires a nightly compiler in some way.