Skip to content

compile sea-query error #150958

@luka-hating

Description

@luka-hating

rustc --version --verbose:

 rustc 1.94.0-nightly (f57eac1bf 2026-01-10) running on aarch64-apple-darwin
compiler flags: --crate-type lib -C embed-bitcode=no -C debuginfo=2 -C split-debuginfo=unpacked

Error output

hread 'rustc' (74700172) panicked at /rustc-dev/f57eac1bf98cb5d578e3364b64365ec398c137df/compiler/rustc_resolve/src/imports.rs:378:13:
assertion failed: !deep_decl.is_glob_import()
stack backtrace:
   Compiling derive_builder_core v0.20.2
   0:        0x10ee22120 - <<std[bea62c47457e3f82]::sys::backtrace::BacktraceLock>::print::DisplayBacktrace as core[b198376f1f278e6f]::fmt::Display>::fmt
   1:        0x10c08f898 - core[b198376f1f278e6f]::fmt::write
   2:        0x10ee39084 - <std[bea62c47457e3f82]::sys::stdio::unix::Stderr as std[bea62c47457e3f82]::io::Write>::write_fmt
   3:        0x10edf90d0 - std[bea62c47457e3f82]::panicking::default_hook::{closure#0}
   4:        0x10ee14978 - std[bea62c47457e3f82]::panicking::default_hook
   5:        0x10ccd0850 - std[bea62c47457e3f82]::panicking::update_hook::<alloc[b5c7170625bdaf25]::boxed::Box<rustc_driver_impl[f6647e74c252c9e1]::install_ice_hook::{closure#1}>>::{closure#0}
   6:        0x10ee14cdc - std[bea62c47457e3f82]::panicking::panic_with_hook
   7:        0x10edf91a4 - std[bea62c47457e3f82]::panicking::panic_handler::{closure#0}
   8:        0x10edefce4 - std[bea62c47457e3f82]::sys::backtrace::__rust_end_short_backtrace::<std[bea62c47457e3f82]::panicking::panic_handler::{closure#0}, !>
   9:        0x10edfa790 - __rustc[92b3c909df398c49]::rust_begin_unwind
  10:        0x111b6e230 - core[b198376f1f278e6f]::panicking::panic_fmt
  11:        0x111b6e208 - core[b198376f1f278e6f]::panicking::panic
  12:        0x10e647c34 - <rustc_resolve[80d567382423b520]::Resolver>::select_glob_decl
  13:        0x10e649384 - <rustc_resolve[80d567382423b520]::Resolver>::try_plant_decl_into_local_module
  14:        0x10e6495d4 - <rustc_resolve[80d567382423b520]::Resolver>::try_plant_decl_into_local_module
  15:        0x10e6495d4 - <rustc_resolve[80d567382423b520]::Resolver>::try_plant_decl_into_local_module
  16:        0x10e69e4b4 - <rustc_resolve[80d567382423b520]::Resolver as rustc_expand[d71fe4e3b07676cf]::base::ResolverExpand>::resolve_imports
  17:        0x10cdf0558 - <rustc_expand[d71fe4e3b07676cf]::expand::MacroExpander>::fully_expand_fragment
  18:        0x10cde6cd8 - <rustc_expand[d71fe4e3b07676cf]::expand::MacroExpander>::expand_crate
  19:        0x10d6407a4 - rustc_interface[40618657a6b38809]::passes::configure_and_expand
  20:        0x10d64367c - rustc_interface[40618657a6b38809]::passes::resolver_for_lowering_raw
  21:        0x10e273a38 - 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]>>
  22:        0x10e2922e8 - 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>
  23:        0x10e3f9c80 - rustc_query_impl[ec1080ef2fae8744]::query_impl::resolver_for_lowering_raw::get_query_non_incr::__rust_end_short_backtrace
  24:        0x10cc82114 - 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}>
  25:        0x10cccef98 - rustc_interface[40618657a6b38809]::interface::run_compiler::<(), rustc_driver_impl[f6647e74c252c9e1]::run_compiler::{closure#0}>::{closure#1}
  26:        0x10ccc3c00 - 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}, ()>
  27:        0x10ccd6634 - <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}
  28:        0x10ee1f804 - <std[bea62c47457e3f82]::sys::thread::unix::Thread>::new::thread_start
  29:        0x181c05c08 - __pthread_cond_wait

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/lnn/.rustup/toolchains/nightly-aarch64-apple-darwin/bin/rustc --crate-name sea_query --edition=2024 /Users/lnn/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sea-query-1.0.0-rc.29/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=204 --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="chrono"' --cfg 'feature="derive"' --cfg 'feature="hashable-value"' --cfg 'feature="ordered-float"' --cfg 'feature="rust_decimal"' --cfg 'feature="sea-orm"' --cfg 'feature="sea-query-derive"' --cfg 'feature="serde_json"' --cfg 'feature="thread-safe"' --cfg 'feature="time"' --cfg 'feature="uuid"' --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", "audit", "backend-mysql", "backend-postgres", "backend-sqlite", "bigdecimal", "chrono", "default", "derive", "hashable-value", "ipnetwork", "itoa", "jiff", "mac_address", "option-more-parentheses", "option-postgres-use-serial", "option-sqlite-exact-column-type", "ordered-float", "pgvector", "postgres-array", "postgres-interval", "postgres-range", "postgres-vector", "rust_decimal", "sea-orm", "sea-query-derive", "sea-query-postgres-types", "serde", "serde_json", "sqlx-utils", "tests-cfg", "thread-safe", "time", "uuid", "with-bigdecimal", "with-chrono", "with-ipnetwork", "with-jiff", "with-json", "with-mac_address", "with-rust_decimal", "with-time", "with-uuid"))' -C metadata=b5a718b75b07f437 -C extra-filename=-d755dc88c05ece36 --out-dir /Users/lnn/workspace/lnn/rust/target/debug/deps -L dependency=/Users/lnn/workspace/lnn/rust/target/debug/deps --extern chrono=/Users/lnn/workspace/lnn/rust/target/debug/deps/libchrono-fbf82cf1aa86ad3b.rmeta --extern inherent=/Users/lnn/workspace/lnn/rust/target/debug/deps/libinherent-c575e4896a0b49c9.dylib --extern ordered_float=/Users/lnn/workspace/lnn/rust/target/debug/deps/libordered_float-b02f402a3b9ed814.rmeta --extern rust_decimal=/Users/lnn/workspace/lnn/rust/target/debug/deps/librust_decimal-e2e6b35986db3039.rmeta --extern sea_query_derive=/Users/lnn/workspace/lnn/rust/target/debug/deps/libsea_query_derive-cfe1df949df5e9e8.dylib --extern serde_json=/Users/lnn/workspace/lnn/rust/target/debug/deps/libserde_json-5bbc860f0ae4af5c.rmeta --extern time=/Users/lnn/workspace/lnn/rust/target/debug/deps/libtime-1d11fce8bfee79a7.rmeta --extern uuid=/Users/lnn/workspace/lnn/rust/target/debug/deps/libuuid-86f4cc47c9a7d2b4.rmeta --cap-lints allow` (exit status: 101)
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}

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