Skip to content

ICE when compiling chumsky #151180

@ClementNerma

Description

@ClementNerma

When compiling chumsky, rustc crashes (ICE).

This happens when running cargo check or when running cargo build.

Meta

rustc --version --verbose:

rustc 1.94.0-nightly (86a49fd71 2026-01-14)
binary: rustc
commit-hash: 86a49fd71fecd25b0fd20247db0ba95eeceaba28
commit-date: 2026-01-14
host: x86_64-unknown-linux-gnu
release: 1.94.0-nightly
LLVM version: 21.1.8

Error output

Running with RUST_BACKTRACE=1 did not produce any additional output.


thread 'rustc' (1457602) panicked at /rustc-dev/86a49fd71fecd25b0fd20247db0ba95eeceaba28/compiler/rustc_resolve/src/imports.rs:305:9:
assertion `left == right` failed
  left: None
 right: Some(DeclData { kind: Import { source_decl: DeclData { kind: Import { source_decl: DeclData { kind: Def(Def(Struct, DefId(0:8091 ~ chumsky[33dc]::span::Spanned))), ambiguity: CmCell(None), warn_ambiguity: CmCell(false), expansion: expn145, span: src/span.rs:256:1: 261:2 (#0), vis: CmCell(Public), parent_module: Some(Some(Def(Mod, DefId(0:3464 ~ chumsky[33dc]::span)))) }, import: ImportData { kind: Single { source: Spanned#0, target: Spanned#0, decls: PerNS { value_ns: None, type_ns: None, macro_ns: None }, type_ns_only: false, nested: true, id: NodeId(44969) }, root_id: NodeId(44898), use_span: src/lib.rs:79:5: 91:7 (#0), use_span_with_attributes: src/lib.rs:79:5: 91:7 (#0), has_attributes: false, span: src/lib.rs:89:54: 89:61 (#0), root_span: src/lib.rs:79:13: 91:6 (#0), parent_scope: ParentScope { module: Some(Def(Mod, DefId(0:3975 ~ chumsky[33dc]::prelude))), expansion: expn0, macro_rules: Cell { value: Def(MacroRulesDecl { decl: DeclData { kind: Def(Def(Macro(MacroKinds(1)), DefId(0:5 ~ chumsky[33dc]::go_extra))), ambiguity: CmCell(None), warn_ambiguity: CmCell(false), expansion: expn0, span: src/lib.rs:22:1: 33:2 (#0), vis: CmCell(Restricted(DefId(0:0 ~ chumsky[33dc]))), parent_module: Some(Some(Def(Mod, DefId(0:0 ~ chumsky[33dc])))) }, parent_macro_rules_scope: Cell { value: Empty }, ident: go_extra#0 }) }, derives: [] }, module_path: [Segment { ident: super#0, id: Some(NodeId(44899)), has_generic_args: false, has_lifetime_args: false, args_span: no-location (#0) }, Segment { ident: span#0, id: Some(NodeId(44961)), has_generic_args: false, has_lifetime_args: false, args_span: no-location (#0) }], imported_module: CmCell(Some(Module(Some(Def(Mod, DefId(0:3464 ~ chumsky[33dc]::span)))))), vis: Public, vis_span: src/lib.rs:79:5: 79:8 (#0) } }, ambiguity: CmCell(None), warn_ambiguity: CmCell(false), expansion: expn0, span: src/lib.rs:89:54: 89:61 (#0), vis: CmCell(Public), parent_module: Some(Some(Def(Mod, DefId(0:3975 ~ chumsky[33dc]::prelude)))) }, import: ImportData { kind: Glob { max_vis: CmCell(Some(Restricted(DefId(0:3632 ~ chumsky[33dc]::text)))), id: NodeId(40548) }, root_id: NodeId(40548), use_span: src/text.rs:9:1: 9:23 (#0), use_span_with_attributes: src/text.rs:9:1: 9:23 (#0), has_attributes: false, span: src/text.rs:9:5: 9:22 (#0), root_span: src/text.rs:9:5: 9:22 (#0), parent_scope: ParentScope { module: Some(Def(Mod, DefId(0:3632 ~ chumsky[33dc]::text))), expansion: expn0, macro_rules: Cell { value: Def(MacroRulesDecl { decl: DeclData { kind: Def(Def(Macro(MacroKinds(1)), DefId(0:5 ~ chumsky[33dc]::go_extra))), ambiguity: CmCell(None), warn_ambiguity: CmCell(false), expansion: expn0, span: src/lib.rs:22:1: 33:2 (#0), vis: CmCell(Restricted(DefId(0:0 ~ chumsky[33dc]))), parent_module: Some(Some(Def(Mod, DefId(0:0 ~ chumsky[33dc])))) }, parent_macro_rules_scope: Cell { value: Empty }, ident: go_extra#0 }) }, derives: [] }, module_path: [Segment { ident: crate#0, id: Some(NodeId(40549)), has_generic_args: false, has_lifetime_args: false, args_span: no-location (#0) }, Segment { ident: prelude#0, id: Some(NodeId(40550)), has_generic_args: false, has_lifetime_args: false, args_span: no-location (#0) }], imported_module: CmCell(Some(Module(Some(Def(Mod, DefId(0:3975 ~ chumsky[33dc]::prelude)))))), vis: Restricted(DefId(0:3632 ~ chumsky[33dc]::text)), vis_span: src/text.rs:9:1: 9:1 (#0) } }, ambiguity: CmCell(None), warn_ambiguity: CmCell(false), expansion: expn0, span: src/text.rs:9:5: 9:22 (#0), vis: CmCell(Restricted(DefId(0:3632 ~ chumsky[33dc]::text))), parent_module: Some(Some(Def(Mod, DefId(0:3632 ~ chumsky[33dc]::text)))) })
stack backtrace:
   0:     0x7fb94ec44783 - <<std[99a77fcd2881e1e7]::sys::backtrace::BacktraceLock>::print::DisplayBacktrace as core[270d1373c8f6a07d]::fmt::Display>::fmt
   1:     0x7fb94f20e35c - core[270d1373c8f6a07d]::fmt::write
   2:     0x7fb94ec5b186 - <std[99a77fcd2881e1e7]::sys::stdio::unix::Stderr as std[99a77fcd2881e1e7]::io::Write>::write_fmt
   3:     0x7fb94ec1a688 - std[99a77fcd2881e1e7]::panicking::default_hook::{closure#0}
   4:     0x7fb94ec37d83 - std[99a77fcd2881e1e7]::panicking::default_hook
   5:     0x7fb94dc1b63a - std[99a77fcd2881e1e7]::panicking::update_hook::<alloc[206d51544a00c3e8]::boxed::Box<rustc_driver_impl[20c567ab0eec109e]::install_ice_hook::{closure#1}>>::{closure#0}
   6:     0x7fb94ec38062 - std[99a77fcd2881e1e7]::panicking::panic_with_hook
   7:     0x7fb94ec1a748 - std[99a77fcd2881e1e7]::panicking::panic_handler::{closure#0}
   8:     0x7fb94ec0ec59 - std[99a77fcd2881e1e7]::sys::backtrace::__rust_end_short_backtrace::<std[99a77fcd2881e1e7]::panicking::panic_handler::{closure#0}, !>
   9:     0x7fb94ec1c21d - __rustc[e1bf4ce096729b3a]::rust_begin_unwind
  10:     0x7fb94c0c8c5c - core[270d1373c8f6a07d]::panicking::panic_fmt
  11:     0x7fb94d59a573 - core[270d1373c8f6a07d]::panicking::assert_failed_inner
  12:     0x7fb94e76fe13 - core[270d1373c8f6a07d]::panicking::assert_failed::<core[270d1373c8f6a07d]::option::Option<rustc_data_structures[d4baafc84bef5099]::intern::Interned<rustc_resolve[78cac696115ccd77]::DeclData>>, core[270d1373c8f6a07d]::option::Option<rustc_data_structures[d4baafc84bef5099]::intern::Interned<rustc_resolve[78cac696115ccd77]::DeclData>>>
  13:     0x7fb94f235415 - <rustc_resolve[78cac696115ccd77]::Resolver>::try_plant_decl_into_local_module
  14:     0x7fb94f234645 - <rustc_resolve[78cac696115ccd77]::Resolver>::try_plant_decl_into_local_module
  15:     0x7fb94f234645 - <rustc_resolve[78cac696115ccd77]::Resolver>::try_plant_decl_into_local_module
  16:     0x7fb94f2375ce - <rustc_resolve[78cac696115ccd77]::Resolver>::resolve_import::{closure#0}
  17:     0x7fb94f236433 - <rustc_resolve[78cac696115ccd77]::Resolver as rustc_expand[1005fac9ed9395e4]::base::ResolverExpand>::resolve_imports
  18:     0x7fb95086fd1e - <rustc_expand[1005fac9ed9395e4]::expand::MacroExpander>::fully_expand_fragment
  19:     0x7fb950831f13 - <rustc_expand[1005fac9ed9395e4]::expand::MacroExpander>::expand_crate
  20:     0x7fb94f95a234 - rustc_interface[4190908c685cc231]::passes::configure_and_expand
  21:     0x7fb9504efa55 - rustc_interface[4190908c685cc231]::passes::resolver_for_lowering_raw
  22:     0x7fb9504ef7cd - rustc_query_impl[5d03519af14689dc]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[5d03519af14689dc]::query_impl::resolver_for_lowering_raw::dynamic_query::{closure#2}::{closure#0}, rustc_middle[2e386638a360c90c]::query::erase::Erased<[u8; 16usize]>>
  23:     0x7fb9504ef7a7 - <rustc_query_impl[5d03519af14689dc]::query_impl::resolver_for_lowering_raw::dynamic_query::{closure#2} as core[270d1373c8f6a07d]::ops::function::FnOnce<(rustc_middle[2e386638a360c90c]::ty::context::TyCtxt, ())>>::call_once
  24:     0x7fb9505fff3d - rustc_query_system[eed45c866303c690]::query::plumbing::try_execute_query::<rustc_query_impl[5d03519af14689dc]::DynamicConfig<rustc_query_system[eed45c866303c690]::query::caches::SingleCache<rustc_middle[2e386638a360c90c]::query::erase::Erased<[u8; 16usize]>>, false, false, false>, rustc_query_impl[5d03519af14689dc]::plumbing::QueryCtxt, true>
  25:     0x7fb9505ff917 - rustc_query_impl[5d03519af14689dc]::query_impl::resolver_for_lowering_raw::get_query_incr::__rust_end_short_backtrace
  26:     0x7fb9505c0bb8 - <rustc_interface[4190908c685cc231]::passes::create_and_enter_global_ctxt<core[270d1373c8f6a07d]::option::Option<rustc_interface[4190908c685cc231]::queries::Linker>, rustc_driver_impl[20c567ab0eec109e]::run_compiler::{closure#0}::{closure#2}>::{closure#2} as core[270d1373c8f6a07d]::ops::function::FnOnce<(&rustc_session[b1a887d3ceadb98b]::session::Session, rustc_middle[2e386638a360c90c]::ty::context::CurrentGcx, alloc[206d51544a00c3e8]::sync::Arc<rustc_data_structures[d4baafc84bef5099]::jobserver::Proxy>, &std[99a77fcd2881e1e7]::sync::once_lock::OnceLock<rustc_middle[2e386638a360c90c]::ty::context::GlobalCtxt>, &rustc_data_structures[d4baafc84bef5099]::sync::worker_local::WorkerLocal<rustc_middle[2e386638a360c90c]::arena::Arena>, &rustc_data_structures[d4baafc84bef5099]::sync::worker_local::WorkerLocal<rustc_hir[a0f10157905e5583]::Arena>, rustc_driver_impl[20c567ab0eec109e]::run_compiler::{closure#0}::{closure#2})>>::call_once::{shim:vtable#0}
  27:     0x7fb950441715 - rustc_interface[4190908c685cc231]::interface::run_compiler::<(), rustc_driver_impl[20c567ab0eec109e]::run_compiler::{closure#0}>::{closure#1}
  28:     0x7fb95038d18e - std[99a77fcd2881e1e7]::sys::backtrace::__rust_begin_short_backtrace::<rustc_interface[4190908c685cc231]::util::run_in_thread_with_globals<rustc_interface[4190908c685cc231]::util::run_in_thread_pool_with_globals<rustc_interface[4190908c685cc231]::interface::run_compiler<(), rustc_driver_impl[20c567ab0eec109e]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>
  29:     0x7fb95038cf60 - <std[99a77fcd2881e1e7]::thread::lifecycle::spawn_unchecked<rustc_interface[4190908c685cc231]::util::run_in_thread_with_globals<rustc_interface[4190908c685cc231]::util::run_in_thread_pool_with_globals<rustc_interface[4190908c685cc231]::interface::run_compiler<(), rustc_driver_impl[20c567ab0eec109e]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core[270d1373c8f6a07d]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  30:     0x7fb95038ed04 - <std[99a77fcd2881e1e7]::sys::thread::unix::Thread>::new::thread_start
  31:     0x7fb949e7f464 - start_thread
  32:     0x7fb949f025ac - __clone3
  33:                0x0 - <unknown>

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 `/tmp/chumsky/rustc-ice-2026-01-15T23_07_07-1457600.txt` to your bug report

note: rustc 1.94.0-nightly (86a49fd71 2026-01-14) running on x86_64-unknown-linux-gnu

note: compiler flags: --crate-type lib -C embed-bitcode=no -C debuginfo=2 -C incremental=[REDACTED]

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

query stack during panic:
#0 [resolver_for_lowering_raw] getting the resolver for lowering
end of query stack
error: could not compile `chumsky` (lib)

Caused by:
  process didn't exit successfully: `/home/clement/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/rustc --crate-name chumsky --edition=2021 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=140 --crate-type lib --emit=dep-info,metadata -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="stacker"' --cfg 'feature="std"' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("_test_stable", "bytes", "debug", "default", "docsrs", "either", "extension", "lexical", "lexical-numbers", "memoization", "nightly", "pratt", "regex", "serde", "stacker", "std", "unstable"))' -C metadata=30d515918acf9e0e -C extra-filename=-13c5807c0528e537 --out-dir /tmp/chumsky/target/debug/deps -C incremental=/tmp/chumsky/target/debug/incremental -L dependency=/tmp/chumsky/target/debug/deps --extern hashbrown=/tmp/chumsky/target/debug/deps/libhashbrown-79a1c7e7b9d72aa0.rmeta --extern stacker=/tmp/chumsky/target/debug/deps/libstacker-cffd6104f7cb028e.rmeta --extern unicode_ident=/tmp/chumsky/target/debug/deps/libunicode_ident-878b9ccc643431f1.rmeta --extern unicode_segmentation=/tmp/chumsky/target/debug/deps/libunicode_segmentation-b4e7787bd375b06a.rmeta -L native=/tmp/chumsky/target/debug/build/psm-85b6f5c894ceb5e2/out` (exit status: 101)

Content of: /tmp/chumsky/rustc-ice-2026-01-15T23_07_07-1457600.txt:

thread 'rustc' panicked at /rustc-dev/86a49fd71fecd25b0fd20247db0ba95eeceaba28/compiler/rustc_resolve/src/imports.rs:305:9:
assertion `left == right` failed
  left: None
 right: Some(DeclData { kind: Import { source_decl: DeclData { kind: Import { source_decl: DeclData { kind: Def(Def(Struct, DefId(0:8091 ~ chumsky[33dc]::span::Spanned))), ambiguity: CmCell(None), warn_ambiguity: CmCell(false), expansion: expn145, span: src/span.rs:256:1: 261:2 (#0), vis: CmCell(Public), parent_module: Some(Some(Def(Mod, DefId(0:3464 ~ chumsky[33dc]::span)))) }, import: ImportData { kind: Single { source: Spanned#0, target: Spanned#0, decls: PerNS { value_ns: None, type_ns: None, macro_ns: None }, type_ns_only: false, nested: true, id: NodeId(44969) }, root_id: NodeId(44898), use_span: src/lib.rs:79:5: 91:7 (#0), use_span_with_attributes: src/lib.rs:79:5: 91:7 (#0), has_attributes: false, span: src/lib.rs:89:54: 89:61 (#0), root_span: src/lib.rs:79:13: 91:6 (#0), parent_scope: ParentScope { module: Some(Def(Mod, DefId(0:3975 ~ chumsky[33dc]::prelude))), expansion: expn0, macro_rules: Cell { value: Def(MacroRulesDecl { decl: DeclData { kind: Def(Def(Macro(MacroKinds(1)), DefId(0:5 ~ chumsky[33dc]::go_extra))), ambiguity: CmCell(None), warn_ambiguity: CmCell(false), expansion: expn0, span: src/lib.rs:22:1: 33:2 (#0), vis: CmCell(Restricted(DefId(0:0 ~ chumsky[33dc]))), parent_module: Some(Some(Def(Mod, DefId(0:0 ~ chumsky[33dc])))) }, parent_macro_rules_scope: Cell { value: Empty }, ident: go_extra#0 }) }, derives: [] }, module_path: [Segment { ident: super#0, id: Some(NodeId(44899)), has_generic_args: false, has_lifetime_args: false, args_span: no-location (#0) }, Segment { ident: span#0, id: Some(NodeId(44961)), has_generic_args: false, has_lifetime_args: false, args_span: no-location (#0) }], imported_module: CmCell(Some(Module(Some(Def(Mod, DefId(0:3464 ~ chumsky[33dc]::span)))))), vis: Public, vis_span: src/lib.rs:79:5: 79:8 (#0) } }, ambiguity: CmCell(None), warn_ambiguity: CmCell(false), expansion: expn0, span: src/lib.rs:89:54: 89:61 (#0), vis: CmCell(Public), parent_module: Some(Some(Def(Mod, DefId(0:3975 ~ chumsky[33dc]::prelude)))) }, import: ImportData { kind: Glob { max_vis: CmCell(Some(Restricted(DefId(0:3632 ~ chumsky[33dc]::text)))), id: NodeId(40548) }, root_id: NodeId(40548), use_span: src/text.rs:9:1: 9:23 (#0), use_span_with_attributes: src/text.rs:9:1: 9:23 (#0), has_attributes: false, span: src/text.rs:9:5: 9:22 (#0), root_span: src/text.rs:9:5: 9:22 (#0), parent_scope: ParentScope { module: Some(Def(Mod, DefId(0:3632 ~ chumsky[33dc]::text))), expansion: expn0, macro_rules: Cell { value: Def(MacroRulesDecl { decl: DeclData { kind: Def(Def(Macro(MacroKinds(1)), DefId(0:5 ~ chumsky[33dc]::go_extra))), ambiguity: CmCell(None), warn_ambiguity: CmCell(false), expansion: expn0, span: src/lib.rs:22:1: 33:2 (#0), vis: CmCell(Restricted(DefId(0:0 ~ chumsky[33dc]))), parent_module: Some(Some(Def(Mod, DefId(0:0 ~ chumsky[33dc])))) }, parent_macro_rules_scope: Cell { value: Empty }, ident: go_extra#0 }) }, derives: [] }, module_path: [Segment { ident: crate#0, id: Some(NodeId(40549)), has_generic_args: false, has_lifetime_args: false, args_span: no-location (#0) }, Segment { ident: prelude#0, id: Some(NodeId(40550)), has_generic_args: false, has_lifetime_args: false, args_span: no-location (#0) }], imported_module: CmCell(Some(Module(Some(Def(Mod, DefId(0:3975 ~ chumsky[33dc]::prelude)))))), vis: Restricted(DefId(0:3632 ~ chumsky[33dc]::text)), vis_span: src/text.rs:9:1: 9:1 (#0) } }, ambiguity: CmCell(None), warn_ambiguity: CmCell(false), expansion: expn0, span: src/text.rs:9:5: 9:22 (#0), vis: CmCell(Restricted(DefId(0:3632 ~ chumsky[33dc]::text))), parent_module: Some(Some(Def(Mod, DefId(0:3632 ~ chumsky[33dc]::text)))) })
stack backtrace:
   0:     0x7fb94ec2576b - <std[99a77fcd2881e1e7]::backtrace::Backtrace>::create
   1:     0x7fb94ec256b5 - <std[99a77fcd2881e1e7]::backtrace::Backtrace>::force_capture
   2:     0x7fb94dc1bd57 - std[99a77fcd2881e1e7]::panicking::update_hook::<alloc[206d51544a00c3e8]::boxed::Box<rustc_driver_impl[20c567ab0eec109e]::install_ice_hook::{closure#1}>>::{closure#0}
   3:     0x7fb94ec38062 - std[99a77fcd2881e1e7]::panicking::panic_with_hook
   4:     0x7fb94ec1a748 - std[99a77fcd2881e1e7]::panicking::panic_handler::{closure#0}
   5:     0x7fb94ec0ec59 - std[99a77fcd2881e1e7]::sys::backtrace::__rust_end_short_backtrace::<std[99a77fcd2881e1e7]::panicking::panic_handler::{closure#0}, !>
   6:     0x7fb94ec1c21d - __rustc[e1bf4ce096729b3a]::rust_begin_unwind
   7:     0x7fb94c0c8c5c - core[270d1373c8f6a07d]::panicking::panic_fmt
   8:     0x7fb94d59a573 - core[270d1373c8f6a07d]::panicking::assert_failed_inner
   9:     0x7fb94e76fe13 - core[270d1373c8f6a07d]::panicking::assert_failed::<core[270d1373c8f6a07d]::option::Option<rustc_data_structures[d4baafc84bef5099]::intern::Interned<rustc_resolve[78cac696115ccd77]::DeclData>>, core[270d1373c8f6a07d]::option::Option<rustc_data_structures[d4baafc84bef5099]::intern::Interned<rustc_resolve[78cac696115ccd77]::DeclData>>>
  10:     0x7fb94f235415 - <rustc_resolve[78cac696115ccd77]::Resolver>::try_plant_decl_into_local_module
  11:     0x7fb94f234645 - <rustc_resolve[78cac696115ccd77]::Resolver>::try_plant_decl_into_local_module
  12:     0x7fb94f234645 - <rustc_resolve[78cac696115ccd77]::Resolver>::try_plant_decl_into_local_module
  13:     0x7fb94f2375ce - <rustc_resolve[78cac696115ccd77]::Resolver>::resolve_import::{closure#0}
  14:     0x7fb94f236433 - <rustc_resolve[78cac696115ccd77]::Resolver as rustc_expand[1005fac9ed9395e4]::base::ResolverExpand>::resolve_imports
  15:     0x7fb95086fd1e - <rustc_expand[1005fac9ed9395e4]::expand::MacroExpander>::fully_expand_fragment
  16:     0x7fb950831f13 - <rustc_expand[1005fac9ed9395e4]::expand::MacroExpander>::expand_crate
  17:     0x7fb94f95a234 - rustc_interface[4190908c685cc231]::passes::configure_and_expand
  18:     0x7fb9504efa55 - rustc_interface[4190908c685cc231]::passes::resolver_for_lowering_raw
  19:     0x7fb9504ef7cd - rustc_query_impl[5d03519af14689dc]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[5d03519af14689dc]::query_impl::resolver_for_lowering_raw::dynamic_query::{closure#2}::{closure#0}, rustc_middle[2e386638a360c90c]::query::erase::Erased<[u8; 16usize]>>
  20:     0x7fb9504ef7a7 - <rustc_query_impl[5d03519af14689dc]::query_impl::resolver_for_lowering_raw::dynamic_query::{closure#2} as core[270d1373c8f6a07d]::ops::function::FnOnce<(rustc_middle[2e386638a360c90c]::ty::context::TyCtxt, ())>>::call_once
  21:     0x7fb9505fff3d - rustc_query_system[eed45c866303c690]::query::plumbing::try_execute_query::<rustc_query_impl[5d03519af14689dc]::DynamicConfig<rustc_query_system[eed45c866303c690]::query::caches::SingleCache<rustc_middle[2e386638a360c90c]::query::erase::Erased<[u8; 16usize]>>, false, false, false>, rustc_query_impl[5d03519af14689dc]::plumbing::QueryCtxt, true>
  22:     0x7fb9505ff917 - rustc_query_impl[5d03519af14689dc]::query_impl::resolver_for_lowering_raw::get_query_incr::__rust_end_short_backtrace
  23:     0x7fb9505c0bb8 - <rustc_interface[4190908c685cc231]::passes::create_and_enter_global_ctxt<core[270d1373c8f6a07d]::option::Option<rustc_interface[4190908c685cc231]::queries::Linker>, rustc_driver_impl[20c567ab0eec109e]::run_compiler::{closure#0}::{closure#2}>::{closure#2} as core[270d1373c8f6a07d]::ops::function::FnOnce<(&rustc_session[b1a887d3ceadb98b]::session::Session, rustc_middle[2e386638a360c90c]::ty::context::CurrentGcx, alloc[206d51544a00c3e8]::sync::Arc<rustc_data_structures[d4baafc84bef5099]::jobserver::Proxy>, &std[99a77fcd2881e1e7]::sync::once_lock::OnceLock<rustc_middle[2e386638a360c90c]::ty::context::GlobalCtxt>, &rustc_data_structures[d4baafc84bef5099]::sync::worker_local::WorkerLocal<rustc_middle[2e386638a360c90c]::arena::Arena>, &rustc_data_structures[d4baafc84bef5099]::sync::worker_local::WorkerLocal<rustc_hir[a0f10157905e5583]::Arena>, rustc_driver_impl[20c567ab0eec109e]::run_compiler::{closure#0}::{closure#2})>>::call_once::{shim:vtable#0}
  24:     0x7fb950441715 - rustc_interface[4190908c685cc231]::interface::run_compiler::<(), rustc_driver_impl[20c567ab0eec109e]::run_compiler::{closure#0}>::{closure#1}
  25:     0x7fb95038d18e - std[99a77fcd2881e1e7]::sys::backtrace::__rust_begin_short_backtrace::<rustc_interface[4190908c685cc231]::util::run_in_thread_with_globals<rustc_interface[4190908c685cc231]::util::run_in_thread_pool_with_globals<rustc_interface[4190908c685cc231]::interface::run_compiler<(), rustc_driver_impl[20c567ab0eec109e]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>
  26:     0x7fb95038cf60 - <std[99a77fcd2881e1e7]::thread::lifecycle::spawn_unchecked<rustc_interface[4190908c685cc231]::util::run_in_thread_with_globals<rustc_interface[4190908c685cc231]::util::run_in_thread_pool_with_globals<rustc_interface[4190908c685cc231]::interface::run_compiler<(), rustc_driver_impl[20c567ab0eec109e]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core[270d1373c8f6a07d]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  27:     0x7fb95038ed04 - <std[99a77fcd2881e1e7]::sys::thread::unix::Thread>::new::thread_start
  28:     0x7fb949e7f464 - start_thread
  29:     0x7fb949f025ac - __clone3
  30:                0x0 - <unknown>


rustc version: 1.94.0-nightly (86a49fd71 2026-01-14)
platform: x86_64-unknown-linux-gnu

query stack during panic:
#0 [resolver_for_lowering_raw] getting the resolver for lowering
end of query stack

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.E-needs-mcveCall for participation: This issue has a repro, but needs a Minimal Complete and Verifiable ExampleI-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️S-needs-reproStatus: 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.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions