Skip to content

ICE: compiling a component of seaorm #150970

Description

@keithhughes-ri

Code

I cannot find a minimal verifiable example. The error is in one of my crate dependencies, sea-query.

Meta

rustc --version --verbose:

rustc 1.94.0-nightly (f57eac1bf 2026-01-10)
binary: rustc
commit-hash: f57eac1bf98cb5d578e3364b64365ec398c137df
commit-date: 2026-01-10
host: aarch64-apple-darwin
release: 1.94.0-nightly
LLVM version: 21.1.8

Error output

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:        0x10ebebd2c - <std[bea62c47457e3f82]::backtrace::Backtrace>::create
   1:        0x10cab8ab8 - std[bea62c47457e3f82]::panicking::update_hook::<alloc[b5c7170625bdaf25]::boxed::Box<rustc_driver_impl[f6647e74c252c9e1]::install_ice_hook::{closure#1}>>::{closure#0}
   2:        0x10ebfccdc - std[bea62c47457e3f82]::panicking::panic_with_hook
   3:        0x10ebe11a4 - std[bea62c47457e3f82]::panicking::panic_handler::{closure#0}
   4:        0x10ebd7ce4 - std[bea62c47457e3f82]::sys::backtrace::__rust_end_short_backtrace::<std[bea62c47457e3f82]::panicking::panic_handler::{closure#0}, !>
   5:        0x10ebe2790 - __rustc[92b3c909df398c49]::rust_begin_unwind
   6:        0x111956230 - core[b198376f1f278e6f]::panicking::panic_fmt
   7:        0x111956208 - core[b198376f1f278e6f]::panicking::panic
   8:        0x10e42fc34 - <rustc_resolve[80d567382423b520]::Resolver>::select_glob_decl
   9:        0x10e431384 - <rustc_resolve[80d567382423b520]::Resolver>::try_plant_decl_into_local_module
  10:        0x10e4315d4 - <rustc_resolve[80d567382423b520]::Resolver>::try_plant_decl_into_local_module
  11:        0x10e4315d4 - <rustc_resolve[80d567382423b520]::Resolver>::try_plant_decl_into_local_module
  12:        0x10e4864b4 - <rustc_resolve[80d567382423b520]::Resolver as rustc_expand[d71fe4e3b07676cf]::base::ResolverExpand>::resolve_imports
  13:        0x10cbd8558 - <rustc_expand[d71fe4e3b07676cf]::expand::MacroExpander>::fully_expand_fragment
  14:        0x10cbcecd8 - <rustc_expand[d71fe4e3b07676cf]::expand::MacroExpander>::expand_crate
  15:        0x10d4287a4 - rustc_interface[40618657a6b38809]::passes::configure_and_expand
  16:        0x10d42b67c - rustc_interface[40618657a6b38809]::passes::resolver_for_lowering_raw
  17:        0x10e05ba38 - rustc_query_impl[ec1080ef2fae8744]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[ec1080ef2fae8744]::query_impl::resolver_for_lowering_raw::dynamic_query::{closure#2}::{closure#0}, rustc_middle[5854ef8aa13fbf2e]::query::erase::Erased<[u8; 16usize]>>
  18:        0x10e07a2e8 - rustc_query_system[95db1818014cfacb]::query::plumbing::try_execute_query::<rustc_query_impl[ec1080ef2fae8744]::DynamicConfig<rustc_query_system[95db1818014cfacb]::query::caches::SingleCache<rustc_middle[5854ef8aa13fbf2e]::query::erase::Erased<[u8; 16usize]>>, false, false, false>, rustc_query_impl[ec1080ef2fae8744]::plumbing::QueryCtxt, false>
  19:        0x10e1e1c80 - rustc_query_impl[ec1080ef2fae8744]::query_impl::resolver_for_lowering_raw::get_query_non_incr::__rust_end_short_backtrace
  20:        0x10ca6a114 - rustc_interface[40618657a6b38809]::passes::create_and_enter_global_ctxt::<core[b198376f1f278e6f]::option::Option<rustc_interface[40618657a6b38809]::queries::Linker>, rustc_driver_impl[f6647e74c252c9e1]::run_compiler::{closure#0}::{closure#2}>
  21:        0x10cab6f98 - rustc_interface[40618657a6b38809]::interface::run_compiler::<(), rustc_driver_impl[f6647e74c252c9e1]::run_compiler::{closure#0}>::{closure#1}
  22:        0x10caabc00 - std[bea62c47457e3f82]::sys::backtrace::__rust_begin_short_backtrace::<rustc_interface[40618657a6b38809]::util::run_in_thread_with_globals<rustc_interface[40618657a6b38809]::util::run_in_thread_pool_with_globals<rustc_interface[40618657a6b38809]::interface::run_compiler<(), rustc_driver_impl[f6647e74c252c9e1]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>
  23:        0x10cabe634 - <std[bea62c47457e3f82]::thread::lifecycle::spawn_unchecked<rustc_interface[40618657a6b38809]::util::run_in_thread_with_globals<rustc_interface[40618657a6b38809]::util::run_in_thread_pool_with_globals<rustc_interface[40618657a6b38809]::interface::run_compiler<(), rustc_driver_impl[f6647e74c252c9e1]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core[b198376f1f278e6f]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  24:        0x10ec07804 - <std[bea62c47457e3f82]::sys::thread::unix::Thread>::new::thread_start
  25:        0x18f27dc08 - __pthread_cond_wait


rustc version: 1.94.0-nightly (f57eac1bf 2026-01-10)
platform: aarch64-apple-darwin

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

Backtrace

thread 'rustc' (24814943) panicked at /rustc-dev/f57eac1bf98cb5d578e3364b64365ec398c137df/compiler/rustc_resolve/src/imports.rs:378:13:
assertion failed: !deep_decl.is_glob_import()
stack backtrace:
   0: __rustc::rust_begin_unwind
   1: core::panicking::panic_fmt
   2: core::panicking::panic
   3: <rustc_resolve::Resolver>::select_glob_decl
   4: <rustc_resolve::Resolver>::try_plant_decl_into_local_module
   5: <rustc_resolve::Resolver>::try_plant_decl_into_local_module
   6: <rustc_resolve::Resolver>::try_plant_decl_into_local_module
   7: <rustc_resolve::Resolver as rustc_expand::base::ResolverExpand>::resolve_imports
   8: <rustc_expand::expand::MacroExpander>::fully_expand_fragment
   9: <rustc_expand::expand::MacroExpander>::expand_crate
  10: rustc_interface::passes::configure_and_expand
  11: rustc_interface::passes::resolver_for_lowering_raw
      [... omitted 1 frame ...]
  12: rustc_interface::passes::create_and_enter_global_ctxt::<core::option::Option<rustc_interface::queries::Linker>, rustc_driver_impl::run_compiler::{closure#0}::{closure#2}>
  13: rustc_interface::interface::run_compiler::<(), rustc_driver_impl::run_compiler::{closure#0}>::{closure#1}
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

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 `/Users/keithhughes/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sea-query-0.32.7/rustc-ice-2026-01-11T15_19_07-77215.txt` to your bug report

note: rustc 1.94.0-nightly (f57eac1bf 2026-01-10) running on aarch64-apple-darwin

note: compiler flags: --crate-type lib -C embed-bitcode=no -C debuginfo=2 -C split-debuginfo=unpacked

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 `sea-query` (lib)

Caused by:
  process didn't exit successfully: `/Users/keithhughes/.rustup/toolchains/nightly-aarch64-apple-darwin/bin/rustc --crate-name sea_query --edition=2021 /Users/keithhughes/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sea-query-0.32.7/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=183 --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C split-debuginfo=unpacked --cfg 'feature="backend-mysql"' --cfg 'feature="backend-postgres"' --cfg 'feature="backend-sqlite"' --cfg 'feature="bigdecimal"' --cfg 'feature="chrono"' --cfg 'feature="derive"' --cfg 'feature="hashable-value"' --cfg 'feature="ordered-float"' --cfg 'feature="postgres-array"' --cfg 'feature="rust_decimal"' --cfg 'feature="sea-query-derive"' --cfg 'feature="serde_json"' --cfg 'feature="thread-safe"' --cfg 'feature="time"' --cfg 'feature="uuid"' --cfg 'feature="with-bigdecimal"' --cfg 'feature="with-chrono"' --cfg 'feature="with-json"' --cfg 'feature="with-rust_decimal"' --cfg 'feature="with-time"' --cfg 'feature="with-uuid"' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("all-features", "all-types", "attr", "backend-mysql", "backend-postgres", "backend-sqlite", "bigdecimal", "chrono", "default", "derive", "hashable-value", "ipnetwork", "mac_address", "option-more-parentheses", "option-sqlite-exact-column-type", "ordered-float", "pgvector", "postgres-array", "postgres-interval", "postgres-types", "postgres-vector", "rust_decimal", "sea-query-derive", "serde_json", "tests-cfg", "thread-safe", "time", "uuid", "with-bigdecimal", "with-chrono", "with-ipnetwork", "with-json", "with-mac_address", "with-rust_decimal", "with-time", "with-uuid"))' -C metadata=b4ad4a64a9f01c52 -C extra-filename=-af82c82d7abec2f7 --out-dir /Users/keithhughes/Documents/software/repos/dancing-with-plants/dancing-with-plants-app/target/debug/deps -L dependency=/Users/keithhughes/Documents/software/repos/dancing-with-plants/dancing-with-plants-app/target/debug/deps --extern bigdecimal=/Users/keithhughes/Documents/software/repos/dancing-with-plants/dancing-with-plants-app/target/debug/deps/libbigdecimal-e89b828e8e5bc995.rmeta --extern chrono=/Users/keithhughes/Documents/software/repos/dancing-with-plants/dancing-with-plants-app/target/debug/deps/libchrono-48469349dce3f022.rmeta --extern inherent=/Users/keithhughes/Documents/software/repos/dancing-with-plants/dancing-with-plants-app/target/debug/deps/libinherent-88f36f94744217f7.dylib --extern ordered_float=/Users/keithhughes/Documents/software/repos/dancing-with-plants/dancing-with-plants-app/target/debug/deps/libordered_float-29a41d501e9560e8.rmeta --extern rust_decimal=/Users/keithhughes/Documents/software/repos/dancing-with-plants/dancing-with-plants-app/target/debug/deps/librust_decimal-7caac8fdd2f65790.rmeta --extern sea_query_derive=/Users/keithhughes/Documents/software/repos/dancing-with-plants/dancing-with-plants-app/target/debug/deps/libsea_query_derive-29e1363aae959aad.dylib --extern serde_json=/Users/keithhughes/Documents/software/repos/dancing-with-plants/dancing-with-plants-app/target/debug/deps/libserde_json-517b174a25669da8.rmeta --extern time=/Users/keithhughes/Documents/software/repos/dancing-with-plants/dancing-with-plants-app/target/debug/deps/libtime-af12cc62f5744fb7.rmeta --extern uuid=/Users/keithhughes/Documents/software/repos/dancing-with-plants/dancing-with-plants-app/target/debug/deps/libuuid-e0d7ba7c53c90aea.rmeta --cap-lints allow` (exit status: 101)
warning: build failed, waiting for other jobs to finish...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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