-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
Closed
Labels
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.
Description
After cargo clean, when rebuilding dependencies for a dev version of LiME with cargo build, rustc 1.94.0-nightly (2f1bd3f 2026-01-12) running on x86_64-unknown-linux-gnu hit an assertion failure when compiling the nc crate.
When rerunning cargo build, the same ICE happens again.
After running cargo clean, the same ICE happens again.
I just tried with release 0.2.2 of LiME — the same ICE appears. So it should be fairly reproducible, it seems.
Code
Sorry, no idea, not my crate.
Meta
rustc --version --verbose:
rustc 1.94.0-nightly (2f1bd3f37 2026-01-12)
binary: rustc
commit-hash: 2f1bd3f3781c90a8447e37d65a898442b8618895
commit-date: 2026-01-12
host: x86_64-unknown-linux-gnu
release: 1.94.0-nightly
LLVM version: 21.1.8
Error output
thread 'rustc' (2462977) panicked at /rustc-dev/2f1bd3f3781c90a8447e37d65a898442b8618895/compiler/rustc_resolve/src/imports.rs:378:13:
assertion failed: !deep_decl.is_glob_import()
stack backtrace:
0: 0x7efd5bc47503 - <<std[a5f416d2deaea592]::sys::backtrace::BacktraceLock>::print::DisplayBacktrace as core[c945c22d053963e8]::fmt::Display>::fmt
1: 0x7efd5c20fb48 - core[c945c22d053963e8]::fmt::write
2: 0x7efd5bc5def6 - <std[a5f416d2deaea592]::sys::stdio::unix::Stderr as std[a5f416d2deaea592]::io::Write>::write_fmt
3: 0x7efd5bc1d578 - std[a5f416d2deaea592]::panicking::default_hook::{closure#0}
4: 0x7efd5bc3ac33 - std[a5f416d2deaea592]::panicking::default_hook
5: 0x7efd5ac1cdaa - std[a5f416d2deaea592]::panicking::update_hook::<alloc[7a7c0300d30d45e0]::boxed::Box<rustc_driver_impl[f8fab2a3e91bbc72]::install_ice_hook::{closure#1}>>::{c
losure#0}
6: 0x7efd5bc3af12 - std[a5f416d2deaea592]::panicking::panic_with_hook
7: 0x7efd5bc1d66a - std[a5f416d2deaea592]::panicking::panic_handler::{closure#0}
8: 0x7efd5bc142f9 - std[a5f416d2deaea592]::sys::backtrace::__rust_end_short_backtrace::<std[a5f416d2deaea592]::panicking::panic_handler::{closure#0}, !>
9: 0x7efd5bc1f10d - __rustc[f5b9bebfc43bf6e1]::rust_begin_unwind 10: 0x7efd590a4a8c - core[c945c22d053963e8]::panicking::panic_fmt 11: 0x7efd585d6442 - core[c945c22d053963e8]::panicking::panic 12: 0x7efd5c23a68a - <rustc_resolve[dbc7d173520abd5a]::Resolver>::try_plant_decl_into_local_module
13: 0x7efd5c23980e - <rustc_resolve[dbc7d173520abd5a]::Resolver>::try_plant_decl_into_local_module
14: 0x7efd5c23980e - <rustc_resolve[dbc7d173520abd5a]::Resolver>::try_plant_decl_into_local_module
15: 0x7efd5c23980e - <rustc_resolve[dbc7d173520abd5a]::Resolver>::try_plant_decl_into_local_module
16: 0x7efd5cbadbbc - <rustc_resolve[dbc7d173520abd5a]::build_reduced_graph::BuildReducedGraphVisitor as rustc_ast[4dcd57b9f0538538]::visit::Visitor>::visit_item
17: 0x7efd5cbb999d - <rustc_resolve[dbc7d173520abd5a]::Resolver as rustc_expand[5079fac6889cf13b]::base::ResolverExpand>::visit_ast_fragment_with_placeholders
18: 0x7efd5d85c27f - <rustc_expand[5079fac6889cf13b]::expand::MacroExpander>::fully_expand_fragment
19: 0x7efd5d847484 - <rustc_expand[5079fac6889cf13b]::expand::MacroExpander>::expand_crate
20: 0x7efd5c8cbcb4 - rustc_interface[3871beb558f2da7e]::passes::configure_and_expand
21: 0x7efd5d569b18 - rustc_interface[3871beb558f2da7e]::passes::resolver_for_lowering_raw
22: 0x7efd5d56988d - rustc_query_impl[1c3887c9021dbf26]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[1c3887c9021dbf26]::query_impl::resolver_for_lowering_raw::dyna
mic_query::{closure#2}::{closure#0}, rustc_middle[dc8205edb3ac2d51]::query::erase::Erased<[u8; 16usize]>>
23: 0x7efd5d569867 - <rustc_query_impl[1c3887c9021dbf26]::query_impl::resolver_for_lowering_raw::dynamic_query::{closure#2} as core[c945c22d053963e8]::ops::function::FnOnce<(rus
tc_middle[dc8205edb3ac2d51]::ty::context::TyCtxt, ())>>::call_once
24: 0x7efd5d3f66df - rustc_query_system[745b7c3eb8a83b39]::query::plumbing::try_execute_query::<rustc_query_impl[1c3887c9021dbf26]::DynamicConfig<rustc_query_system[745b7c3eb8a8
3b39]::query::caches::SingleCache<rustc_middle[dc8205edb3ac2d51]::query::erase::Erased<[u8; 16usize]>>, false, false, false>, rustc_query_impl[1c3887c9021dbf26]::plumbing::QueryCtxt,
false>
25: 0x7efd5d3f6244 - rustc_query_impl[1c3887c9021dbf26]::query_impl::resolver_for_lowering_raw::get_query_non_incr::__rust_end_short_backtrace
26: 0x7efd5d5e1cbb - <rustc_interface[3871beb558f2da7e]::passes::create_and_enter_global_ctxt<core[c945c22d053963e8]::option::Option<rustc_interface[3871beb558f2da7e]::queries::
Linker>, rustc_driver_impl[f8fab2a3e91bbc72]::run_compiler::{closure#0}::{closure#2}>::{closure#2} as core[c945c22d053963e8]::ops::function::FnOnce<(&rustc_session[e46a25957daea355]::
session::Session, rustc_middle[dc8205edb3ac2d51]::ty::context::CurrentGcx, alloc[7a7c0300d30d45e0]::sync::Arc<rustc_data_structures[34c6d144dc575c71]::jobserver::Proxy>, &std[a5f416d2
deaea592]::sync::once_lock::OnceLock<rustc_middle[dc8205edb3ac2d51]::ty::context::GlobalCtxt>, &rustc_data_structures[34c6d144dc575c71]::sync::worker_local::WorkerLocal<rustc_middle[d
c8205edb3ac2d51]::arena::Arena>, &rustc_data_structures[34c6d144dc575c71]::sync::worker_local::WorkerLocal<rustc_hir[79327aa2168b85fb]::Arena>, rustc_driver_impl[f8fab2a3e91bbc72]::ru
n_compiler::{closure#0}::{closure#2})>>::call_once::{shim:vtable#0}
27: 0x7efd5d44cb18 - rustc_interface[3871beb558f2da7e]::interface::run_compiler::<(), rustc_driver_impl[f8fab2a3e91bbc72]::run_compiler::{closure#0}>::{closure#1}
28: 0x7efd5d39bc4e - std[a5f416d2deaea592]::sys::backtrace::__rust_begin_short_backtrace::<rustc_interface[3871beb558f2da7e]::util::run_in_thread_with_globals<rustc_interface[38
71beb558f2da7e]::util::run_in_thread_pool_with_globals<rustc_interface[3871beb558f2da7e]::interface::run_compiler<(), rustc_driver_impl[f8fab2a3e91bbc72]::run_compiler::{closure#0}>::
{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>
29: 0x7efd5d39ba20 - <std[a5f416d2deaea592]::thread::lifecycle::spawn_unchecked<rustc_interface[3871beb558f2da7e]::util::run_in_thread_with_globals<rustc_interface[3871beb558f2d
a7e]::util::run_in_thread_pool_with_globals<rustc_interface[3871beb558f2da7e]::interface::run_compiler<(), rustc_driver_impl[f8fab2a3e91bbc72]::run_compiler::{closure#0}>::{closure#1}
, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core[c945c22d053963e8]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
30: 0x7efd5d399df8 - <std[a5f416d2deaea592]::sys::thread::unix::Thread>::new::thread_start
31: 0x7efd56ea8144 - start_thread
at ./nptl/pthread_create.c:442:8
32: 0x7efd56f287dc - clone3
at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:81:0
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 `/local/toolchains/rust/registry/src/index.crates.io-1949cf8c6b5b557f/nc-0.8.17/rustc-ice-2026-01-13T20_09_24-2462936.txt` to your bug report
note: rustc 1.94.0-nightly (2f1bd3f37 2026-01-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 `nc` (lib)
Caused by:
process didn't exit successfully: `rustc --crate-name nc --edition=2018 /home/bbb/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nc-0.8.17/src/lib.rs --error-format=json --jso
n=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=183 --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="default"'
--cfg 'feature="std"' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("default", "std"))' -C metadata=46e2c17f2630117b -C extra-filename=-30d1dd6ab135cb22 --out-dir /
tmp/LiME-internal-fix-policy-change/target/debug/deps -L dependency=/tmp/LiME-internal-fix-policy-change/target/debug/deps --cap-lints allow --cfg has_asm` (exit status: 101)
Banyc
Metadata
Metadata
Assignees
Labels
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.