Skip to content

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

@heiseish

Description

@heiseish

Code

I actually ran into this while trying to update a global tool tabiew

cargo install tabiew

Update: seems to be an issue with compiling polars

Meta

rustc --version --verbose:

rustc 1.95.0-nightly (873b4beb0 2026-02-15)
binary: rustc
commit-hash: 873b4beb0cc726493b94c8ef21f68795c04fbbc1
commit-date: 2026-02-15
host: x86_64-unknown-linux-gnu
release: 1.95.0-nightly
LLVM version: 22.1.0

Error output

error: the compiler unexpectedly panicked. This is a bug

...

note: rustc 1.95.0-nightly (873b4beb0 2026-02-15) running on x86_64-unknown-linux-gnu

note: compiler flags: --crate-type lib -C opt-level=3 -C panic=abort -C linker-plugin-lto -C codegen-units=1 -C strip=sy
mbols -C target-cpu=native -Z threads=8

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

thread 'rustc' panicked at /rustc-dev/873b4beb0cc726493b94c8ef21f68795c04fbbc1/compiler/rustc_resolve/src/imports.rs:387:13:
assertion failed: !deep_decl.is_glob_import()
stack backtrace:
   0:     0x7301c97b567b - <std[e84040df3bd3b365]::backtrace::Backtrace>::create
   1:     0x7301c97b55c5 - <std[e84040df3bd3b365]::backtrace::Backtrace>::force_capture
   2:     0x7301c87916b8 - std[e84040df3bd3b365]::panicking::update_hook::<alloc[d9717d1773e7bcdb]::boxed::Box<rustc_driver_impl[1d3373f79f63c38d]::install_ice_hook::{closure#1}>>::{closure#0}
   3:     0x7301c97c7be2 - std[e84040df3bd3b365]::panicking::panic_with_hook
   4:     0x7301c97aa63a - std[e84040df3bd3b365]::panicking::panic_handler::{closure#0}
   5:     0x7301c97a1359 - std[e84040df3bd3b365]::sys::backtrace::__rust_end_short_backtrace::<std[e84040df3bd3b365]::panicking::panic_handler::{closure#0}, !>
   6:     0x7301c97ac06d - __rustc[d6e935dc4dcc4704]::rust_begin_unwind
   7:     0x7301c64717ec - core[6c6f0f72ed298c38]::panicking::panic_fmt
   8:     0x7301c5e495a2 - core[6c6f0f72ed298c38]::panicking::panic
   9:     0x7301c9e4932b - <rustc_resolve[d774a31373eb74ed]::Resolver>::try_plant_decl_into_local_module
  10:     0x7301c9e4892d - <rustc_resolve[d774a31373eb74ed]::Resolver>::try_plant_decl_into_local_module
  11:     0x7301c9e46e5f - <rustc_resolve[d774a31373eb74ed]::Resolver as rustc_expand[4adce2b3d17797ec]::base::ResolverExpand>::resolve_imports
  12:     0x7301cb405d9e - <rustc_expand[4adce2b3d17797ec]::expand::MacroExpander>::fully_expand_fragment
  13:     0x7301cb404f1b - <rustc_expand[4adce2b3d17797ec]::expand::MacroExpander>::expand_crate
  14:     0x7301ca69743a - rustc_interface[ffa26b8aee337d6b]::passes::resolver_for_lowering_raw
  15:     0x7301ca6968b3 - rustc_query_impl[761ff2116f6b567]::query_impl::resolver_for_lowering_raw::invoke_provider_fn::__rust_begin_short_backtrace
  16:     0x7301cb068f2e - rustc_query_impl[761ff2116f6b567]::execution::try_execute_query::<rustc_middle[11be9ef6dd95cb79]::query::caches::SingleCache<rustc_middle[11be9ef6dd95cb79]::query::erase::ErasedData<[u8; 16usize]>>, {rustc_query_impl[761ff2116f6b567]::QueryFlags { is_anon: false, is_depth_limit: false, is_feedable: false }}, false>
  17:     0x7301cb068a7c - rustc_query_impl[761ff2116f6b567]::query_impl::resolver_for_lowering_raw::get_query_non_incr::__rust_end_short_backtrace
  18:     0x7301cb13a58f - <rustc_interface[ffa26b8aee337d6b]::passes::create_and_enter_global_ctxt<core[6c6f0f72ed298c38]::option::Option<rustc_interface[ffa26b8aee337d6b]::queries::Linker>, rustc_driver_impl[1d3373f79f63c38d]::run_compiler::{closure#0}::{closure#2}>::{closure#2} as core[6c6f0f72ed298c38]::ops::function::FnOnce<(&rustc_session[e077b3088d2cab4d]::session::Session, rustc_middle[11be9ef6dd95cb79]::ty::context::CurrentGcx, alloc[d9717d1773e7bcdb]::sync::Arc<rustc_data_structures[be2354717932db16]::jobserver::Proxy>, &std[e84040df3bd3b365]::sync::once_lock::OnceLock<rustc_middle[11be9ef6dd95cb79]::ty::context::GlobalCtxt>, &rustc_data_structures[be2354717932db16]::sync::worker_local::WorkerLocal<rustc_middle[11be9ef6dd95cb79]::arena::Arena>, &rustc_data_structures[be2354717932db16]::sync::worker_local::WorkerLocal<rustc_hir[e6f1d3e8b67d381c]::Arena>, rustc_driver_impl[1d3373f79f63c38d]::run_compiler::{closure#0}::{closure#2})>>::call_once::{shim:vtable#0}
  19:     0x7301cb047ad0 - rustc_interface[ffa26b8aee337d6b]::interface::run_compiler::<(), rustc_driver_impl[1d3373f79f63c38d]::run_compiler::{closure#0}>::{closure#1}
  20:     0x7301c87a8a2f - <rustc_thread_pool[bcd70baa4ecbc971]::job::StackJob<rustc_thread_pool[bcd70baa4ecbc971]::latch::LatchRef<rustc_thread_pool[bcd70baa4ecbc971]::latch::LockLatch>, <rustc_thread_pool[bcd70baa4ecbc971]::registry::Registry>::in_worker_cold<<rustc_thread_pool[bcd70baa4ecbc971]::thread_pool::ThreadPool>::install<rustc_interface[ffa26b8aee337d6b]::util::run_in_thread_pool_with_globals<rustc_interface[ffa26b8aee337d6b]::interface::run_compiler<(), rustc_driver_impl[1d3373f79f63c38d]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#5}::{closure#0}::{closure#1}::{closure#0}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()> as rustc_thread_pool[bcd70baa4ecbc971]::job::Job>::execute
  21:     0x7301c94c31af - <rustc_thread_pool[bcd70baa4ecbc971]::registry::WorkerThread>::wait_or_steal_until_cold
  22:     0x7301c94c1bf2 - <rustc_thread_pool[bcd70baa4ecbc971]::registry::ThreadBuilder>::run
  23:     0x7301c878a08c - std[e84040df3bd3b365]::sys::backtrace::__rust_begin_short_backtrace::<<rustc_thread_pool[bcd70baa4ecbc971]::ThreadPoolBuilder>::build_scoped<rustc_interface[ffa26b8aee337d6b]::util::run_in_thread_pool_with_globals<rustc_interface[ffa26b8aee337d6b]::interface::run_compiler<(), rustc_driver_impl[1d3373f79f63c38d]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#5}::{closure#0}::{closure#0}, rustc_interface[ffa26b8aee337d6b]::util::run_in_thread_pool_with_globals<rustc_interface[ffa26b8aee337d6b]::interface::run_compiler<(), rustc_driver_impl[1d3373f79f63c38d]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#5}::{closure#0}::{closure#1}, ()>::{closure#0}::{closure#0}::{closure#0}, ()>
  24:     0x7301c8795073 - <std[e84040df3bd3b365]::thread::lifecycle::spawn_unchecked<<rustc_thread_pool[bcd70baa4ecbc971]::ThreadPoolBuilder>::build_scoped<rustc_interface[ffa26b8aee337d6b]::util::run_in_thread_pool_with_globals<rustc_interface[ffa26b8aee337d6b]::interface::run_compiler<(), rustc_driver_impl[1d3373f79f63c38d]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#5}::{closure#0}::{closure#0}, rustc_interface[ffa26b8aee337d6b]::util::run_in_thread_pool_with_globals<rustc_interface[ffa26b8aee337d6b]::interface::run_compiler<(), rustc_driver_impl[1d3373f79f63c38d]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#5}::{closure#0}::{closure#1}, ()>::{closure#0}::{closure#0}::{closure#0}, ()>::{closure#1} as core[6c6f0f72ed298c38]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  25:     0x7301cb031d2c - <std[e84040df3bd3b365]::sys::thread::unix::Thread>::new::thread_start
  26:     0x7301c489caa4 - start_thread
                               at ./nptl/pthread_create.c:447:8
  27:     0x7301c4929c6c - clone3
                               at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:78:0
  28:                0x0 - <unknown>


rustc version: 1.95.0-nightly (873b4beb0 2026-02-15)
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.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