Skip to content

[ICE]: assertion failed: !deep_decl.is_glob_import() #152588

@ASharifinejad

Description

@ASharifinejad

I ran into a compiler error when building polars 0.52.0 and 0.53.0 with nightly.
this relates to #151037 . That issue is closed, but this seems to become an issue again with the latest nightly release.

Code

Using rustc 1.95.0-nightly:

cargo new ice-sample
cd ice-sample
cargo add polars
cargo build

Meta

rustc --version --verbose:

rustc 1.95.0-nightly (47611e160 2026-02-12)
binary: rustc
commit-hash: 47611e16044c68ef27bac31c35fda2ba1dc20b73
commit-date: 2026-02-12
host: x86_64-unknown-linux-gnu
release: 1.95.0-nightly
LLVM version: 22.1.0

Error output

thread 'rustc' (4528) panicked at /rustc-dev/47611e16044c68ef27bac31c35fda2ba1dc20b73/compiler/rustc_resolve/src/imports.rs:387:13:
assertion failed: !deep_decl.is_glob_import()
stack backtrace:
   0:     0x7f83127cf31b - <<std[34793830d02b48c7]::sys::backtrace::BacktraceLock>::print::DisplayBacktrace as core[a6ad39a0da7a7539]::fmt::Display>::fmt
   1:     0x7f8312e11008 - core[a6ad39a0da7a7539]::fmt::write
   2:     0x7f83127e6596 - <std[34793830d02b48c7]::sys::stdio::unix::Stderr as std[34793830d02b48c7]::io::Write>::write_fmt
   3:     0x7f83127a53c8 - std[34793830d02b48c7]::panicking::default_hook::{closure#0}
   4:     0x7f83127c2783 - std[34793830d02b48c7]::panicking::default_hook
   5:     0x7f8311787bcf - std[34793830d02b48c7]::panicking::update_hook::<alloc[7355a08a4b4abc16]::boxed::Box<rustc_driver_impl[fc02adc504a746b4]::install_ice_hook::{closure#1}>>::{closure#0}
   6:     0x7f83127c2a62 - std[34793830d02b48c7]::panicking::panic_with_hook
   7:     0x7f83127a54ba - std[34793830d02b48c7]::panicking::panic_handler::{closure#0}
   8:     0x7f83127999f9 - std[34793830d02b48c7]::sys::backtrace::__rust_end_short_backtrace::<std[34793830d02b48c7]::panicking::panic_handler::{closure#0}, !>
   9:     0x7f83127a6eed - __rustc[5517ea7aeed6fccd]::rust_begin_unwind
  10:     0x7f830f9a26dc - core[a6ad39a0da7a7539]::panicking::panic_fmt
  11:     0x7f830ee32b42 - core[a6ad39a0da7a7539]::panicking::panic
  12:     0x7f8312e20b89 - <rustc_resolve[15634fa448e108ab]::Resolver>::try_plant_decl_into_local_module
  13:     0x7f8312e2018b - <rustc_resolve[15634fa448e108ab]::Resolver>::try_plant_decl_into_local_module
  14:     0x7f8312e1e6c6 - <rustc_resolve[15634fa448e108ab]::Resolver as rustc_expand[91434ace258868ee]::base::ResolverExpand>::resolve_imports
  15:     0x7f8314457f98 - <rustc_expand[91434ace258868ee]::expand::MacroExpander>::fully_expand_fragment
  16:     0x7f831445711b - <rustc_expand[91434ace258868ee]::expand::MacroExpander>::expand_crate
  17:     0x7f83136fcdd4 - rustc_interface[6252fa30a12e5b1e]::passes::resolver_for_lowering_raw
  18:     0x7f83136fc24d - rustc_query_impl[e0ad78ae441c9bd1]::query_impl::resolver_for_lowering_raw::invoke_provider_fn::__rust_begin_short_backtrace
  19:     0x7f831405b56c - rustc_query_impl[e0ad78ae441c9bd1]::execution::try_execute_query::<rustc_query_system[53f2c074ea36c8a]::query::caches::SingleCache<rustc_middle[5e25af1ddebf47f5]::query::erase::ErasedData<[u8; 16usize]>>, {rustc_query_impl[e0ad78ae441c9bd1]::QueryFlags { is_anon: false, is_depth_limit: false, is_feedable: false }}, false>
  20:     0x7f831405b0c2 - rustc_query_impl[e0ad78ae441c9bd1]::query_impl::resolver_for_lowering_raw::get_query_non_incr::__rust_end_short_backtrace
  21:     0x7f831421744f - <rustc_interface[6252fa30a12e5b1e]::passes::create_and_enter_global_ctxt<core[a6ad39a0da7a7539]::option::Option<rustc_interface[6252fa30a12e5b1e]::queries::Linker>, rustc_driver_impl[fc02adc504a746b4]::run_compiler::{closure#0}::{closure#2}>::{closure#2} as core[a6ad39a0da7a7539]::ops::function::FnOnce<(&rustc_session[e01e61b677365b89]::session::Session, rustc_middle[5e25af1ddebf47f5]::ty::context::CurrentGcx, alloc[7355a08a4b4abc16]::sync::Arc<rustc_data_structures[bea84de8805b0608]::jobserver::Proxy>, &std[34793830d02b48c7]::sync::once_lock::OnceLock<rustc_middle[5e25af1ddebf47f5]::ty::context::GlobalCtxt>, &rustc_data_structures[bea84de8805b0608]::sync::worker_local::WorkerLocal<rustc_middle[5e25af1ddebf47f5]::arena::Arena>, &rustc_data_structures[bea84de8805b0608]::sync::worker_local::WorkerLocal<rustc_hir[c64342c029912d6e]::Arena>, rustc_driver_impl[fc02adc504a746b4]::run_compiler::{closure#0}::{closure#2})>>::call_once::{shim:vtable#0}
  22:     0x7f8313ff18f7 - rustc_interface[6252fa30a12e5b1e]::interface::run_compiler::<(), rustc_driver_impl[fc02adc504a746b4]::run_compiler::{closure#0}>::{closure#1}
  23:     0x7f831403a73e - std[34793830d02b48c7]::sys::backtrace::__rust_begin_short_backtrace::<rustc_interface[6252fa30a12e5b1e]::util::run_in_thread_with_globals<rustc_interface[6252fa30a12e5b1e]::util::run_in_thread_pool_with_globals<rustc_interface[6252fa30a12e5b1e]::interface::run_compiler<(), rustc_driver_impl[fc02adc504a746b4]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>
  24:     0x7f831403ac60 - <std[34793830d02b48c7]::thread::lifecycle::spawn_unchecked<rustc_interface[6252fa30a12e5b1e]::util::run_in_thread_with_globals<rustc_interface[6252fa30a12e5b1e]::util::run_in_thread_pool_with_globals<rustc_interface[6252fa30a12e5b1e]::interface::run_compiler<(), rustc_driver_impl[fc02adc504a746b4]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core[a6ad39a0da7a7539]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  25:     0x7f831403baec - <std[34793830d02b48c7]::sys::thread::unix::Thread>::new::thread_start
  26:     0x7f830d89caa4 - <unknown>
  27:     0x7f830d929c6c - <unknown>
  28:                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/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/polars-core-0.52.0/rustc-ice-2026-02-13T17_23_21-4526.txt` to your bug report

note: rustc 1.95.0-nightly (47611e160 2026-02-12) 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 [resolver_for_lowering_raw] getting the resolver for lowering
end of query stack
error: could not compile `polars-core` (lib)
Backtrace

<backtrace>

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-resolveArea: Name/path resolution done by `rustc_resolve` specificallyC-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