-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
Open
Labels
A-resolveArea: Name/path resolution done by `rustc_resolve` specificallyArea: Name/path resolution done by `rustc_resolve` specificallyC-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) ❄️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.
Description
I stumbled upon a build with polars-plan 0.52.0 that:
- works with
nightly-2026-01-10-x86_64-unknown-linux-gnu (a3f2d5abe 2026-01-09) - fails since
nightly-2026-01-11-x86_64-unknown-linux-gnu (f57eac1bf 2026-01-10)(and fails on latest nightly as tested a few minutes ago)
Build fails in both debug and release mode. I have no idea what triggered it, here are infos:
Error:
thread 'rustc' (2636642) panicked at /rustc-dev/f57eac1bf98cb5d578e3364b64365ec398c137df/compiler/rustc_resolve/src/imports.rs:378:13:
assertion failed: !deep_decl.is_glob_import()
stack backtrace:
0: 0x753da44404f3 - <<std[14974c2a6d31bd09]::sys::backtrace::BacktraceLock>::print::DisplayBacktrace as core[75fca27d79ab979d]::fmt::Display>::fmt
1: 0x753da4a0fac8 - core[75fca27d79ab979d]::fmt::write
2: 0x753da4456776 - <std[14974c2a6d31bd09]::sys::stdio::unix::Stderr as std[14974c2a6d31bd09]::io::Write>::write_fmt
3: 0x753da44160e8 - std[14974c2a6d31bd09]::panicking::default_hook::{closure#0}
4: 0x753da4433d83 - std[14974c2a6d31bd09]::panicking::default_hook
5: 0x753da3415eaa - std[14974c2a6d31bd09]::panicking::update_hook::<alloc[97bcaa3c9f42b50c]::boxed::Box<rustc_driver_impl[8626402415690959]::install_ice_hook::{closure#1}>>::{closure#0}
6: 0x753da4434062 - std[14974c2a6d31bd09]::panicking::panic_with_hook
7: 0x753da44161da - std[14974c2a6d31bd09]::panicking::panic_handler::{closure#0}
8: 0x753da440a659 - std[14974c2a6d31bd09]::sys::backtrace::__rust_end_short_backtrace::<std[14974c2a6d31bd09]::panicking::panic_handler::{closure#0}, !>
9: 0x753da4417c7d - __rustc[92b3c909df398c49]::rust_begin_unwind
10: 0x753da184b37c - core[75fca27d79ab979d]::panicking::panic_fmt
11: 0x753da0ca7732 - core[75fca27d79ab979d]::panicking::panic
12: 0x753da4a3a9a1 - <rustc_resolve[41811edf1107842c]::Resolver>::try_plant_decl_into_local_module
13: 0x753da4a39a8c - <rustc_resolve[41811edf1107842c]::Resolver>::try_plant_decl_into_local_module
14: 0x753da4a39a8c - <rustc_resolve[41811edf1107842c]::Resolver>::try_plant_decl_into_local_module
15: 0x753da4a39a8c - <rustc_resolve[41811edf1107842c]::Resolver>::try_plant_decl_into_local_module
16: 0x753da4a37c4d - <rustc_resolve[41811edf1107842c]::Resolver as rustc_expand[74b331e941252b0a]::base::ResolverExpand>::resolve_imports
17: 0x753da603f9dd - <rustc_expand[74b331e941252b0a]::expand::MacroExpander>::fully_expand_fragment
18: 0x753da603eb52 - <rustc_expand[74b331e941252b0a]::expand::MacroExpander>::expand_crate
19: 0x753da505b434 - rustc_interface[90afb413dadbe4f1]::passes::configure_and_expand
20: 0x753da5b82598 - rustc_interface[90afb413dadbe4f1]::passes::resolver_for_lowering_raw
21: 0x753da5b8230d - rustc_query_impl[7762d22649c04fd8]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[7762d22649c04fd8]::query_impl::resolver_for_lowering_raw::dynamic_query::{closure#2}::{closure#0}, rustc_middle[42069f076602ef26]::query::erase::Erased<[u8; 16usize]>>
22: 0x753da5b822ef - <rustc_query_impl[7762d22649c04fd8]::query_impl::resolver_for_lowering_raw::dynamic_query::{closure#2} as core[75fca27d79ab979d]::ops::function::FnOnce<(rustc_middle[42069f076602ef26]::ty::context::TyCtxt, ())>>::call_once
23: 0x753da5b5c15f - rustc_query_system[4067c90f9d31d9ad]::query::plumbing::try_execute_query::<rustc_query_impl[7762d22649c04fd8]::DynamicConfig<rustc_query_system[4067c90f9d31d9ad]::query::caches::SingleCache<rustc_middle[42069f076602ef26]::query::erase::Erased<[u8; 16usize]>>, false, false, false>, rustc_query_impl[7762d22649c04fd8]::plumbing::QueryCtxt, false>
24: 0x753da5b5bcbc - rustc_query_impl[7762d22649c04fd8]::query_impl::resolver_for_lowering_raw::get_query_non_incr::__rust_end_short_backtrace
25: 0x753da5d2467b - <rustc_interface[90afb413dadbe4f1]::passes::create_and_enter_global_ctxt<core[75fca27d79ab979d]::option::Option<rustc_interface[90afb413dadbe4f1]::queries::Linker>, rustc_driver_impl[8626402415690959]::run_compiler::{closure#0}::{closure#2}>::{closure#2} as core[75fca27d79ab979d]::ops::function::FnOnce<(&rustc_session[7c34b462142e1273]::session::Session, rustc_middle[42069f076602ef26]::ty::context::CurrentGcx, alloc[97bcaa3c9f42b50c]::sync::Arc<rustc_data_structures[5b2e5bcce01f3ea3]::jobserver::Proxy>, &std[14974c2a6d31bd09]::sync::once_lock::OnceLock<rustc_middle[42069f076602ef26]::ty::context::GlobalCtxt>, &rustc_data_structures[5b2e5bcce01f3ea3]::sync::worker_local::WorkerLocal<rustc_middle[42069f076602ef26]::arena::Arena>, &rustc_data_structures[5b2e5bcce01f3ea3]::sync::worker_local::WorkerLocal<rustc_hir[a6c28dd0effa383c]::Arena>, rustc_driver_impl[8626402415690959]::run_compiler::{closure#0}::{closure#2})>>::call_once::{shim:vtable#0}
26: 0x753da5c1cf98 - rustc_interface[90afb413dadbe4f1]::interface::run_compiler::<(), rustc_driver_impl[8626402415690959]::run_compiler::{closure#0}>::{closure#1}
27: 0x753da5a65f4e - std[14974c2a6d31bd09]::sys::backtrace::__rust_begin_short_backtrace::<rustc_interface[90afb413dadbe4f1]::util::run_in_thread_with_globals<rustc_interface[90afb413dadbe4f1]::util::run_in_thread_pool_with_globals<rustc_interface[90afb413dadbe4f1]::interface::run_compiler<(), rustc_driver_impl[8626402415690959]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>
28: 0x753da5a65d20 - <std[14974c2a6d31bd09]::thread::lifecycle::spawn_unchecked<rustc_interface[90afb413dadbe4f1]::util::run_in_thread_with_globals<rustc_interface[90afb413dadbe4f1]::util::run_in_thread_pool_with_globals<rustc_interface[90afb413dadbe4f1]::interface::run_compiler<(), rustc_driver_impl[8626402415690959]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core[75fca27d79ab979d]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
29: 0x753da5a68438 - <std[14974c2a6d31bd09]::sys::thread::unix::Thread>::new::thread_start
30: 0x753d9f49caa4 - <unknown>
31: 0x753d9f529c6c - <unknown>
32: 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 `/home/nicolas/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/polars-plan-0.52.0/rustc-ice-2026-01-12T23_07_12-2636640.txt` to your bug report
note: rustc 1.94.0-nightly (f57eac1bf 2026-01-10) running on x86_64-unknown-linux-gnu
note: compiler flags: --crate-type lib -C opt-level=3 -C embed-bitcode=no -C strip=debuginfo
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 `polars-plan` (lib)
Contents of /home/nicolas/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/polars-plan-0.52.0/rustc-ice-2026-01-12T23_07_12-2636640.txt:
thread 'rustc' panicked at /rustc-dev/f57eac1bf98cb5d578e3364b64365ec398c137df/compiler/rustc_resolve/src/imports.rs:378:13:
assertion failed: !deep_decl.is_glob_import()
stack backtrace:
0: 0x753da4420c4b - <std[14974c2a6d31bd09]::backtrace::Backtrace>::create
1: 0x753da4420b95 - <std[14974c2a6d31bd09]::backtrace::Backtrace>::force_capture
2: 0x753da34165c7 - std[14974c2a6d31bd09]::panicking::update_hook::<alloc[97bcaa3c9f42b50c]::boxed::Box<rustc_driver_impl[8626402415690959]::install_ice_hook::{closure#1}>>::{closure#0}
3: 0x753da4434062 - std[14974c2a6d31bd09]::panicking::panic_with_hook
4: 0x753da44161da - std[14974c2a6d31bd09]::panicking::panic_handler::{closure#0}
5: 0x753da440a659 - std[14974c2a6d31bd09]::sys::backtrace::__rust_end_short_backtrace::<std[14974c2a6d31bd09]::panicking::panic_handler::{closure#0}, !>
6: 0x753da4417c7d - __rustc[92b3c909df398c49]::rust_begin_unwind
7: 0x753da184b37c - core[75fca27d79ab979d]::panicking::panic_fmt
8: 0x753da0ca7732 - core[75fca27d79ab979d]::panicking::panic
9: 0x753da4a3a9a1 - <rustc_resolve[41811edf1107842c]::Resolver>::try_plant_decl_into_local_module
10: 0x753da4a39a8c - <rustc_resolve[41811edf1107842c]::Resolver>::try_plant_decl_into_local_module
11: 0x753da4a39a8c - <rustc_resolve[41811edf1107842c]::Resolver>::try_plant_decl_into_local_module
12: 0x753da4a39a8c - <rustc_resolve[41811edf1107842c]::Resolver>::try_plant_decl_into_local_module
13: 0x753da4a37c4d - <rustc_resolve[41811edf1107842c]::Resolver as rustc_expand[74b331e941252b0a]::base::ResolverExpand>::resolve_imports
14: 0x753da603f9dd - <rustc_expand[74b331e941252b0a]::expand::MacroExpander>::fully_expand_fragment
15: 0x753da603eb52 - <rustc_expand[74b331e941252b0a]::expand::MacroExpander>::expand_crate
16: 0x753da505b434 - rustc_interface[90afb413dadbe4f1]::passes::configure_and_expand
17: 0x753da5b82598 - rustc_interface[90afb413dadbe4f1]::passes::resolver_for_lowering_raw
18: 0x753da5b8230d - rustc_query_impl[7762d22649c04fd8]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[7762d22649c04fd8]::query_impl::resolver_for_lowering_raw::dynamic_query::{closure#2}::{closure#0}, rustc_middle[42069f076602ef26]::query::erase::Erased<[u8; 16usize]>>
19: 0x753da5b822ef - <rustc_query_impl[7762d22649c04fd8]::query_impl::resolver_for_lowering_raw::dynamic_query::{closure#2} as core[75fca27d79ab979d]::ops::function::FnOnce<(rustc_middle[42069f076602ef26]::ty::context::TyCtxt, ())>>::call_once
20: 0x753da5b5c15f - rustc_query_system[4067c90f9d31d9ad]::query::plumbing::try_execute_query::<rustc_query_impl[7762d22649c04fd8]::DynamicConfig<rustc_query_system[4067c90f9d31d9ad]::query::caches::SingleCache<rustc_middle[42069f076602ef26]::query::erase::Erased<[u8; 16usize]>>, false, false, false>, rustc_query_impl[7762d22649c04fd8]::plumbing::QueryCtxt, false>
21: 0x753da5b5bcbc - rustc_query_impl[7762d22649c04fd8]::query_impl::resolver_for_lowering_raw::get_query_non_incr::__rust_end_short_backtrace
22: 0x753da5d2467b - <rustc_interface[90afb413dadbe4f1]::passes::create_and_enter_global_ctxt<core[75fca27d79ab979d]::option::Option<rustc_interface[90afb413dadbe4f1]::queries::Linker>, rustc_driver_impl[8626402415690959]::run_compiler::{closure#0}::{closure#2}>::{closure#2} as core[75fca27d79ab979d]::ops::function::FnOnce<(&rustc_session[7c34b462142e1273]::session::Session, rustc_middle[42069f076602ef26]::ty::context::CurrentGcx, alloc[97bcaa3c9f42b50c]::sync::Arc<rustc_data_structures[5b2e5bcce01f3ea3]::jobserver::Proxy>, &std[14974c2a6d31bd09]::sync::once_lock::OnceLock<rustc_middle[42069f076602ef26]::ty::context::GlobalCtxt>, &rustc_data_structures[5b2e5bcce01f3ea3]::sync::worker_local::WorkerLocal<rustc_middle[42069f076602ef26]::arena::Arena>, &rustc_data_structures[5b2e5bcce01f3ea3]::sync::worker_local::WorkerLocal<rustc_hir[a6c28dd0effa383c]::Arena>, rustc_driver_impl[8626402415690959]::run_compiler::{closure#0}::{closure#2})>>::call_once::{shim:vtable#0}
23: 0x753da5c1cf98 - rustc_interface[90afb413dadbe4f1]::interface::run_compiler::<(), rustc_driver_impl[8626402415690959]::run_compiler::{closure#0}>::{closure#1}
24: 0x753da5a65f4e - std[14974c2a6d31bd09]::sys::backtrace::__rust_begin_short_backtrace::<rustc_interface[90afb413dadbe4f1]::util::run_in_thread_with_globals<rustc_interface[90afb413dadbe4f1]::util::run_in_thread_pool_with_globals<rustc_interface[90afb413dadbe4f1]::interface::run_compiler<(), rustc_driver_impl[8626402415690959]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>
25: 0x753da5a65d20 - <std[14974c2a6d31bd09]::thread::lifecycle::spawn_unchecked<rustc_interface[90afb413dadbe4f1]::util::run_in_thread_with_globals<rustc_interface[90afb413dadbe4f1]::util::run_in_thread_pool_with_globals<rustc_interface[90afb413dadbe4f1]::interface::run_compiler<(), rustc_driver_impl[8626402415690959]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core[75fca27d79ab979d]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
26: 0x753da5a68438 - <std[14974c2a6d31bd09]::sys::thread::unix::Thread>::new::thread_start
27: 0x753d9f49caa4 - <unknown>
28: 0x753d9f529c6c - <unknown>
29: 0x0 - <unknown>
rustc version: 1.94.0-nightly (f57eac1bf 2026-01-10)
platform: x86_64-unknown-linux-gnu
query stack during panic:
#0 [resolver_for_lowering_raw] getting the resolver for lowering
end of query stack
To reproduce:
cargo new demo-rust-ice-polars-plancd demo-rust-ice-polars-plancargo add polars-plancargo borcargo b --releasewith faulty nightly toolchain on unknown-linux-gnu
Metadata
Metadata
Assignees
Labels
A-resolveArea: Name/path resolution done by `rustc_resolve` specificallyArea: Name/path resolution done by `rustc_resolve` specificallyC-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) ❄️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.