Skip to content

compiler panic - name of non-Rpitit assoc item #141304

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
TeamDman opened this issue May 20, 2025 · 8 comments
Closed

compiler panic - name of non-Rpitit assoc item #141304

TeamDman opened this issue May 20, 2025 · 8 comments
Labels
C-bug Category: This is a bug. E-needs-mcve Call for participation: This issue has a repro, but needs a Minimal Complete and Verifiable Example I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@TeamDman
Copy link

Code

https://github.com/AAFC-Cloud/Cloud-Terrastodon/tree/51103094dfce8125988378682d0fcf2879b201a2

Meta

rustc --version --verbose:

rustc 1.88.0-nightly (d6c1e454a 2025-04-21)
binary: rustc
commit-hash: d6c1e454aa8af5e7e59fbf5c4e7d3128d2f99582
commit-date: 2025-04-21
host: x86_64-pc-windows-msvc
release: 1.88.0-nightly
LLVM version: 20.1.2

Error output

cloud-terrastodon on  HEAD (245f2e6) [!?] is 📦 v0.9.0-pre via 🦀 v1.88.0-nightly 
❯ cargo clean && cargo build
     Removed 58688 files, 45.9GiB total
...                                                                                                                                                                                                                      
error[E0432]: unresolved import `crate::scopes::HasSlug`                                                                                                                                                                                                                     
 --> crates\azure_types\src\resource_group_id.rs:6:5
  |
6 | use crate::scopes::HasSlug;
  |     ^^^^^^^^^^^^^^^^^^^^^^ no `HasSlug` in `scopes`

error[E0432]: unresolved import `crate::scopes::Slug`
  --> crates\azure_types\src\resource_group_id.rs:13:5
   |
13 | use crate::scopes::Slug;
   |     ^^^^^^^^^^^^^^^^^^^ no `Slug` in `scopes`

error[E0432]: unresolved import `crate::scopes::Slug`
  --> crates\azure_types\src\resource_group_name.rs:12:5
   |
12 | use crate::scopes::Slug;
   |     ^^^^^^^^^^^^^^^^^^^ no `Slug` in `scopes`

error[E0405]: cannot find trait `HasSlug` in this scope
   --> crates\azure_types\src\scopes.rs:228:31
    |
228 |     Self: Sized + HasPrefix + HasSlug,
    |                               ^^^^^^^ not found in this scope

error[E0405]: cannot find trait `HasSlug` in this scope
   --> crates\azure_types\src\scopes.rs:240:30
    |
240 |         let name = <<Self as HasSlug>::Name>::try_new(name)?;
    |                              ^^^^^^^ not found in this scope

error[E0220]: associated type `Name` not found for `Self`
   --> crates\azure_types\src\scopes.rs:256:21
    |
256 |         name: Self::Name,
    |                     ^^^^ associated type `Name` not found


thread 'rustc' panicked at compiler\rustc_middle\src\ty\assoc.rs:43:25:
name of non-Rpitit assoc item
stack backtrace:
   0:     0x7ffd6038f132 - std::backtrace_rs::backtrace::win64::trace
                               at /rustc/d6c1e454aa8af5e7e59fbf5c4e7d3128d2f99582/library\std\src\..\..\backtrace\src\backtrace\win64.rs:85
   1:     0x7ffd6038f132 - std::backtrace_rs::backtrace::trace_unsynchronized
                               at /rustc/d6c1e454aa8af5e7e59fbf5c4e7d3128d2f99582/library\std\src\..\..\backtrace\src\backtrace\mod.rs:66
   2:     0x7ffd6038f132 - std::sys::backtrace::_print_fmt
                               at /rustc/d6c1e454aa8af5e7e59fbf5c4e7d3128d2f99582/library\std\src\sys\backtrace.rs:66
   3:     0x7ffd6038f132 - std::sys::backtrace::impl$0::print::impl$0::fmt
                               at /rustc/d6c1e454aa8af5e7e59fbf5c4e7d3128d2f99582/library\std\src\sys\backtrace.rs:39
   4:     0x7ffd603c1d8b - core::fmt::rt::Argument::fmt
                               at /rustc/d6c1e454aa8af5e7e59fbf5c4e7d3128d2f99582/library\core\src\fmt\rt.rs:179
   5:     0x7ffd603c1d8b - core::fmt::write
                               at /rustc/d6c1e454aa8af5e7e59fbf5c4e7d3128d2f99582/library\core\src\fmt\mod.rs:1481
   6:     0x7ffd603854d7 - std::io::default_write_fmt
                               at /rustc/d6c1e454aa8af5e7e59fbf5c4e7d3128d2f99582/library\std\src\io\mod.rs:639
   7:     0x7ffd603854d7 - std::io::Write::write_fmt<std::sys::stdio::windows::Stderr>
                               at /rustc/d6c1e454aa8af5e7e59fbf5c4e7d3128d2f99582/library\std\src\io\mod.rs:1914
   8:     0x7ffd6038ef75 - std::sys::backtrace::BacktraceLock::print
                               at /rustc/d6c1e454aa8af5e7e59fbf5c4e7d3128d2f99582/library\std\src\sys\backtrace.rs:42
   9:     0x7ffd60394c1a - std::panicking::default_hook::closure$0
                               at /rustc/d6c1e454aa8af5e7e59fbf5c4e7d3128d2f99582/library\std\src\panicking.rs:300
  10:     0x7ffd603949b0 - std::panicking::default_hook
                               at /rustc/d6c1e454aa8af5e7e59fbf5c4e7d3128d2f99582/library\std\src\panicking.rs:327
  11:     0x7ffd61a58009 - core[b69a5567f1a8e133]::slice::sort::unstable::heapsort::heapsort::<((rustc_lint_defs[d3a8597da2640295]::Level, &str), usize), <((rustc_lint_defs[d3a8597da2640295]::Level, &str), usize) as core[b69a5567f1a8e133]::cmp::PartialOrd>::lt>        
  12:     0x7ffd603958ae - std::panicking::rust_panic_with_hook
                               at /rustc/d6c1e454aa8af5e7e59fbf5c4e7d3128d2f99582/library\std\src\panicking.rs:841
  13:     0x7ffd60395609 - std::panicking::begin_panic_handler::closure$0
                               at /rustc/d6c1e454aa8af5e7e59fbf5c4e7d3128d2f99582/library\std\src\panicking.rs:706
  14:     0x7ffd6038feef - std::sys::backtrace::__rust_end_short_backtrace<std::panicking::begin_panic_handler::closure_env$0,never$>
                               at /rustc/d6c1e454aa8af5e7e59fbf5c4e7d3128d2f99582/library\std\src\sys\backtrace.rs:168
  15:     0x7ffd6039520e - std::panicking::begin_panic_handler
                               at /rustc/d6c1e454aa8af5e7e59fbf5c4e7d3128d2f99582/library\std\src\panicking.rs:697
  16:     0x7ffd634967d1 - core::panicking::panic_fmt
                               at /rustc/d6c1e454aa8af5e7e59fbf5c4e7d3128d2f99582/library\core\src\panicking.rs:75
  17:     0x7ffd634967ac - core::panicking::panic_display
                               at /rustc/d6c1e454aa8af5e7e59fbf5c4e7d3128d2f99582/library\core\src\panicking.rs:261
  18:     0x7ffd634967ac - core::option::expect_failed
                               at /rustc/d6c1e454aa8af5e7e59fbf5c4e7d3128d2f99582/library\core\src\option.rs:2024
  19:     0x7ffd618c1bb7 - <rustc_middle[ca8cef1b836ae31]::ty::assoc::AssocItem>::ident
  20:     0x7ffd61fb910d - <thin_vec[549f0902ccdd486e]::IntoIter<_> as core[b69a5567f1a8e133]::ops::drop::Drop>::drop::drop_non_singleton::<rustc_ast[ae10b822ae39ae05]::ast::MetaItemInner>
  21:     0x7ffd61ff050e - <rustc_arena[aee4f091f291a75b]::TypedArena<rustc_middle[ca8cef1b836ae31]::middle::region::ScopeTree>>::grow
  22:     0x7ffd61fa9d5a - <thin_vec[549f0902ccdd486e]::IntoIter<_> as core[b69a5567f1a8e133]::ops::drop::Drop>::drop::drop_non_singleton::<rustc_ast[ae10b822ae39ae05]::ast::MetaItemInner>
  23:     0x7ffd5fc122e0 - <dyn rustc_hir_analysis[9b4a4fc007578d8]::hir_ty_lowering::HirTyLowerer>::lower_assoc_path_ty
  24:     0x7ffd5fc086ed - <dyn rustc_hir_analysis[9b4a4fc007578d8]::hir_ty_lowering::HirTyLowerer>::lower_assoc_path_ty
  25:     0x7ffd607688fa - <dyn rustc_hir_analysis[9b4a4fc007578d8]::hir_ty_lowering::HirTyLowerer>::lower_ty
  26:     0x7ffd60760bf3 - <dyn rustc_hir_analysis[9b4a4fc007578d8]::hir_ty_lowering::HirTyLowerer>::lower_path
  27:     0x7ffd6076874b - <dyn rustc_hir_analysis[9b4a4fc007578d8]::hir_ty_lowering::HirTyLowerer>::lower_ty
  28:     0x7ffd6076a185 - <dyn rustc_hir_analysis[9b4a4fc007578d8]::hir_ty_lowering::HirTyLowerer>::lower_fn_ty
  29:     0x7ffd607492bd - <rustc_hir_analysis[9b4a4fc007578d8]::collect::resolve_bound_vars::BoundVarContext as rustc_hir[2464117408ddf9f0]::intravisit::Visitor>::visit_impl_item
  30:     0x7ffd612a16a8 - rustc_query_impl[f85cd7bc3f7a601]::plumbing::query_key_hash_verify_all
  31:     0x7ffd6128587d - RINvNtNtCs9ROcQWto7lS_18rustc_query_system5query8plumbing17try_execute_queryINtCs1kCRnIU4ZJ5_16rustc_query_impl13DynamicConfigINtNtCscnXKnzz12SQ_21rustc_data_structures9vec_cache8VecCacheNtNtCsbRFIwFPKUlD_10rustc_span6def_id10LocalDefIdINtNtNtCs15nUKjuB7Kn
  32:     0x7ffd61153ef2 - RINvNtNtCs9ROcQWto7lS_18rustc_query_system5query8plumbing17try_execute_queryINtCs1kCRnIU4ZJ5_16rustc_query_impl13DynamicConfigINtNtB4_6caches10DefIdCacheINtNtNtCs15nUKjuB7Kn_12rustc_middle5query5erase6ErasedAhj18_EEKb0_KB3s_KB3s_ENtNtB1f_8plumbing9QueryCtx
  33:     0x7ffd612a94fa - rustc_query_impl[f85cd7bc3f7a601]::plumbing::query_key_hash_verify_all
  34:     0x7ffd607160aa - <dyn rustc_hir_analysis[9b4a4fc007578d8]::hir_ty_lowering::HirTyLowerer>::probe_generic_path_segments
  35:     0x7ffd607190c3 - <dyn rustc_hir_analysis[9b4a4fc007578d8]::hir_ty_lowering::HirTyLowerer>::probe_generic_path_segments
  36:     0x7ffd5ff07714 - <alloc[91663ad0af153bc6]::sync::Arc<rustc_session[49b192782455a519]::cstore::CrateSource>>::drop_slow
  37:     0x7ffd5fe22fbf - RINvNtNtCs9ROcQWto7lS_18rustc_query_system5query8plumbing17try_execute_queryINtCs1kCRnIU4ZJ5_16rustc_query_impl13DynamicConfigINtNtB4_6caches11SingleCacheINtNtNtCs15nUKjuB7Kn_12rustc_middle5query5erase6ErasedAhj8_EEKb0_KB3s_KB3s_ENtNtB1f_8plumbing9QueryCtx
  38:     0x7ffd62aeaa58 - <rustc_span[8a35011a25780dbf]::def_id::DefIndex as rustc_query_impl[f85cd7bc3f7a601]::profiling_support::SpecIntoSelfProfilingString>::spec_to_self_profile_string
  39:     0x7ffd6071b951 - <dyn rustc_hir_analysis[9b4a4fc007578d8]::hir_ty_lowering::HirTyLowerer>::probe_generic_path_segments
  40:     0x7ffd6129f81e - rustc_query_impl[f85cd7bc3f7a601]::plumbing::query_key_hash_verify_all
  41:     0x7ffd61144c7c - RINvNtNtCs9ROcQWto7lS_18rustc_query_system5query8plumbing17try_execute_queryINtCs1kCRnIU4ZJ5_16rustc_query_impl13DynamicConfigINtNtB4_6caches10DefIdCacheINtNtNtCs15nUKjuB7Kn_12rustc_middle5query5erase6ErasedAhj10_EEKb0_KB3s_KB3s_ENtNtB1f_8plumbing9QueryCtx
  42:     0x7ffd612a819a - rustc_query_impl[f85cd7bc3f7a601]::plumbing::query_key_hash_verify_all
  43:     0x7ffd5fbc2d32 - rustc_hir_analysis[9b4a4fc007578d8]::check::check::check_abi_fn_ptr
  44:     0x7ffd606bf647 - rustc_hir_analysis[9b4a4fc007578d8]::check::wfcheck::check_well_formed
  45:     0x7ffd612a021b - rustc_query_impl[f85cd7bc3f7a601]::plumbing::query_key_hash_verify_all
  46:     0x7ffd611df275 - RINvNtNtCs9ROcQWto7lS_18rustc_query_system5query8plumbing17try_execute_queryINtCs1kCRnIU4ZJ5_16rustc_query_impl13DynamicConfigINtNtCscnXKnzz12SQ_21rustc_data_structures9vec_cache8VecCacheNtNtCsbRFIwFPKUlD_10rustc_span6def_id10LocalDefIdINtNtNtCs15nUKjuB7Kn
  47:     0x7ffd612b0869 - rustc_query_impl[f85cd7bc3f7a601]::plumbing::query_key_hash_verify_all
  48:     0x7ffd61f6592a - core[b69a5567f1a8e133]::panicking::assert_matches_failed::<rustc_hir_analysis[9b4a4fc007578d8]::hir_ty_lowering::PredicateFilter>
  49:     0x7ffd61f74054 - core[b69a5567f1a8e133]::slice::sort::unstable::heapsort::heapsort::<(bool, u32), <(bool, u32) as core[b69a5567f1a8e133]::cmp::PartialOrd>::lt>
  50:     0x7ffd61fb505e - <thin_vec[549f0902ccdd486e]::IntoIter<_> as core[b69a5567f1a8e133]::ops::drop::Drop>::drop::drop_non_singleton::<rustc_ast[ae10b822ae39ae05]::ast::MetaItemInner>
  51:     0x7ffd61f740ef - core[b69a5567f1a8e133]::slice::sort::unstable::heapsort::heapsort::<(bool, u32), <(bool, u32) as core[b69a5567f1a8e133]::cmp::PartialOrd>::lt>
  52:     0x7ffd61fb505e - <thin_vec[549f0902ccdd486e]::IntoIter<_> as core[b69a5567f1a8e133]::ops::drop::Drop>::drop::drop_non_singleton::<rustc_ast[ae10b822ae39ae05]::ast::MetaItemInner>
  53:     0x7ffd61f740ef - core[b69a5567f1a8e133]::slice::sort::unstable::heapsort::heapsort::<(bool, u32), <(bool, u32) as core[b69a5567f1a8e133]::cmp::PartialOrd>::lt>
  54:     0x7ffd61fb505e - <thin_vec[549f0902ccdd486e]::IntoIter<_> as core[b69a5567f1a8e133]::ops::drop::Drop>::drop::drop_non_singleton::<rustc_ast[ae10b822ae39ae05]::ast::MetaItemInner>
  55:     0x7ffd61f740ef - core[b69a5567f1a8e133]::slice::sort::unstable::heapsort::heapsort::<(bool, u32), <(bool, u32) as core[b69a5567f1a8e133]::cmp::PartialOrd>::lt>
  56:     0x7ffd620027f7 - <rustc_arena[aee4f091f291a75b]::TypedArena<rustc_middle[ca8cef1b836ae31]::middle::region::ScopeTree>>::grow
  57:     0x7ffd6346adf8 - <rayon_core[b8b36686ae76e3a4]::registry::WorkerThread>::wait_until_cold
  58:     0x7ffd6346790c - <rayon_core[b8b36686ae76e3a4]::registry::ThreadBuilder>::run
  59:     0x7ffd61a4cafe - RINvNtNtCsjmr3bWfv5Jq_3std3sys9backtrace28___rust_begin_short_backtraceNCNCNCINvMs1_CsfR9N6i7HpGW_10rayon_coreNtB1k_17ThreadPoolBuilder12build_scopedNCNCNCINvNtCshHwp2wu3aLw_15rustc_interface4util31run_in_thread_pool_with_globalsNCINvNtB2y_9interface12run_
  60:     0x7ffd61a5ea8b - core[b69a5567f1a8e133]::slice::sort::unstable::heapsort::heapsort::<((rustc_lint_defs[d3a8597da2640295]::Level, &str), usize), <((rustc_lint_defs[d3a8597da2640295]::Level, &str), usize) as core[b69a5567f1a8e133]::cmp::PartialOrd>::lt>        
  61:     0x7ffd6039a28d - alloc::boxed::impl$28::call_once
                               at /rustc/d6c1e454aa8af5e7e59fbf5c4e7d3128d2f99582/library\alloc\src\boxed.rs:1966
  62:     0x7ffd6039a28d - alloc::boxed::impl$28::call_once
                               at /rustc/d6c1e454aa8af5e7e59fbf5c4e7d3128d2f99582/library\alloc\src\boxed.rs:1966
  63:     0x7ffd6039a28d - std::sys::pal::windows::thread::impl$0::new::thread_start
                               at /rustc/d6c1e454aa8af5e7e59fbf5c4e7d3128d2f99582/library\std\src\sys\pal\windows\thread.rs:56
  64:     0x7ffe57f0259d - BaseThreadInitThunk
  65:     0x7ffe59ceaf38 - RtlUserThreadStart

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 `C:\Users\teamy\source\repos\cloud-terrastodon\rustc-ice-2025-05-20T18_30_19-42920.txt` to your bug report

note: compiler flags: --crate-type lib -C embed-bitcode=no -C debuginfo=2 -C linker=rust-lld.exe -C incremental=[REDACTED] -Z share-generics=n -Z threads=0

note: some of the compiler flags provided by cargo are hidden

query stack during panic:
#0 [fn_sig] computing function signature of `resource_group_id::<impl at crates\azure_types\src\resource_group_id.rs:44:1: 44:33>::try_new_name`
#1 [crate_variances] computing the variances for items in this crate
... and 4 other queries... use `env RUST_BACKTRACE=1` to see the full query stack
Some errors have detailed explanations: E0220, E0405, E0432.
For more information about an error, try `rustc --explain E0220`.
error: could not compile `cloud_terrastodon_azure_types` (lib) due to 6 previous errors
warning: build failed, waiting for other jobs to finish...

Backtrace

cloud-terrastodon on  HEAD (5110309) is 📦 v0.9.0-pre via 🦀 v1.88.0-nightly 
❯ $env:RUST_BACKTRACE="1"   

cloud-terrastodon on  HEAD (5110309) is 📦 v0.9.0-pre via 🦀 v1.88.0-nightly 
❯ cargo build
   Compiling sysinfo v0.34.2
   Compiling cloud_terrastodon_azure_types v0.5.0 (C:\Users\teamy\source\repos\cloud-terrastodon\crates\azure_types)
   Compiling cloud_terrastodon_zombies v0.1.0 (C:\Users\teamy\source\repos\cloud-terrastodon\crates\zombies)
error[E0432]: unresolved import `crate::scopes::HasSlug`
 --> crates\azure_types\src\resource_group_id.rs:6:5
  |
6 | use crate::scopes::HasSlug;
  |     ^^^^^^^^^^^^^^^^^^^^^^ no `HasSlug` in `scopes`

error[E0432]: unresolved import `crate::scopes::Slug`
  --> crates\azure_types\src\resource_group_id.rs:13:5
   |
13 | use crate::scopes::Slug;
   |     ^^^^^^^^^^^^^^^^^^^ no `Slug` in `scopes`

error[E0432]: unresolved import `crate::scopes::Slug`
  --> crates\azure_types\src\resource_group_name.rs:12:5
   |
12 | use crate::scopes::Slug;
   |     ^^^^^^^^^^^^^^^^^^^ no `Slug` in `scopes`

error[E0405]: cannot find trait `HasSlug` in this scope
   --> crates\azure_types\src\scopes.rs:228:31
    |
228 |     Self: Sized + HasPrefix + HasSlug,
    |                               ^^^^^^^ not found in this scope

error[E0405]: cannot find trait `HasSlug` in this scope
   --> crates\azure_types\src\scopes.rs:240:30
    |
240 |         let name = <<Self as HasSlug>::Name>::try_new(name)?;
    |                              ^^^^^^^ not found in this scope

error[E0220]: associated type `Name` not found for `Self`
   --> crates\azure_types\src\scopes.rs:256:21
    |
256 |         name: Self::Name,
    |                     ^^^^ associated type `Name` not found


thread 'rustc' panicked at compiler\rustc_middle\src\ty\assoc.rs:43:25:
name of non-Rpitit assoc item
stack backtrace:
   0: std::panicking::begin_panic_handler
             at /rustc/d6c1e454aa8af5e7e59fbf5c4e7d3128d2f99582/library\std\src\panicking.rs:697
   1: core::panicking::panic_fmt
             at /rustc/d6c1e454aa8af5e7e59fbf5c4e7d3128d2f99582/library\core\src\panicking.rs:75
   2: core::panicking::panic_display
             at /rustc/d6c1e454aa8af5e7e59fbf5c4e7d3128d2f99582/library\core\src\panicking.rs:261
   3: core::option::expect_failed
             at /rustc/d6c1e454aa8af5e7e59fbf5c4e7d3128d2f99582/library\core\src\option.rs:2024
   4: <rustc_middle::ty::assoc::AssocItem>::ident
   5: <thin_vec::IntoIter<_> as core::ops::drop::Drop>::drop::drop_non_singleton::<rustc_ast::ast::MetaItemInner>
   6: <rustc_arena::TypedArena<rustc_middle::middle::region::ScopeTree>>::grow
   7: <thin_vec::IntoIter<_> as core::ops::drop::Drop>::drop::drop_non_singleton::<rustc_ast::ast::MetaItemInner>
   8: <dyn rustc_hir_analysis::hir_ty_lowering::HirTyLowerer>::lower_assoc_path_ty
   9: <dyn rustc_hir_analysis::hir_ty_lowering::HirTyLowerer>::lower_assoc_path_ty
  10: <dyn rustc_hir_analysis::hir_ty_lowering::HirTyLowerer>::lower_ty
  11: <dyn rustc_hir_analysis::hir_ty_lowering::HirTyLowerer>::lower_path
  12: <dyn rustc_hir_analysis::hir_ty_lowering::HirTyLowerer>::lower_ty
  13: <dyn rustc_hir_analysis::hir_ty_lowering::HirTyLowerer>::lower_fn_ty
  14: <rustc_hir_analysis::collect::resolve_bound_vars::BoundVarContext as rustc_hir::intravisit::Visitor>::visit_impl_item
  15: rustc_query_impl::plumbing::query_key_hash_verify_all
  16: RINvNtNtCs9ROcQWto7lS_18rustc_query_system5query8plumbing17try_execute_queryINtCs1kCRnIU4ZJ5_16rustc_query_impl13DynamicConfigINtNtCscnXKnzz12SQ_21rustc_data_structures9vec_cache8VecCacheNtNtCsbRFIwFPKUlD_10rustc_span6def_id10LocalDefIdINtNtNtCs15nUKjuB7Kn       
  17: RINvNtNtCs9ROcQWto7lS_18rustc_query_system5query8plumbing17try_execute_queryINtCs1kCRnIU4ZJ5_16rustc_query_impl13DynamicConfigINtNtB4_6caches10DefIdCacheINtNtNtCs15nUKjuB7Kn_12rustc_middle5query5erase6ErasedAhj18_EEKb0_KB3s_KB3s_ENtNtB1f_8plumbing9QueryCtx       
  18: rustc_query_impl::plumbing::query_key_hash_verify_all
  19: <dyn rustc_hir_analysis::hir_ty_lowering::HirTyLowerer>::probe_generic_path_segments
  20: <dyn rustc_hir_analysis::hir_ty_lowering::HirTyLowerer>::probe_generic_path_segments
  21: <alloc::sync::Arc<rustc_session::cstore::CrateSource>>::drop_slow
  22: RINvNtNtCs9ROcQWto7lS_18rustc_query_system5query8plumbing17try_execute_queryINtCs1kCRnIU4ZJ5_16rustc_query_impl13DynamicConfigINtNtB4_6caches11SingleCacheINtNtNtCs15nUKjuB7Kn_12rustc_middle5query5erase6ErasedAhj8_EEKb0_KB3s_KB3s_ENtNtB1f_8plumbing9QueryCtx       
  23: <rustc_span::def_id::DefIndex as rustc_query_impl::profiling_support::SpecIntoSelfProfilingString>::spec_to_self_profile_string
  24: <dyn rustc_hir_analysis::hir_ty_lowering::HirTyLowerer>::probe_generic_path_segments
  25: rustc_query_impl::plumbing::query_key_hash_verify_all
  26: RINvNtNtCs9ROcQWto7lS_18rustc_query_system5query8plumbing17try_execute_queryINtCs1kCRnIU4ZJ5_16rustc_query_impl13DynamicConfigINtNtB4_6caches10DefIdCacheINtNtNtCs15nUKjuB7Kn_12rustc_middle5query5erase6ErasedAhj10_EEKb0_KB3s_KB3s_ENtNtB1f_8plumbing9QueryCtx       
  27: rustc_query_impl::plumbing::query_key_hash_verify_all
  28: rustc_hir_analysis::check::check::check_abi_fn_ptr
  29: rustc_hir_analysis::check::wfcheck::check_well_formed
  30: rustc_query_impl::plumbing::query_key_hash_verify_all
  31: RINvNtNtCs9ROcQWto7lS_18rustc_query_system5query8plumbing17try_execute_queryINtCs1kCRnIU4ZJ5_16rustc_query_impl13DynamicConfigINtNtCscnXKnzz12SQ_21rustc_data_structures9vec_cache8VecCacheNtNtCsbRFIwFPKUlD_10rustc_span6def_id10LocalDefIdINtNtNtCs15nUKjuB7Kn       
  32: rustc_query_impl::plumbing::query_key_hash_verify_all
  33: core::panicking::assert_matches_failed::<rustc_hir_analysis::hir_ty_lowering::PredicateFilter>
  34: core::slice::sort::unstable::heapsort::heapsort::<(bool, u32), <(bool, u32) as core::cmp::PartialOrd>::lt>
  35: <thin_vec::IntoIter<_> as core::ops::drop::Drop>::drop::drop_non_singleton::<rustc_ast::ast::MetaItemInner>
  36: core::slice::sort::unstable::heapsort::heapsort::<(bool, u32), <(bool, u32) as core::cmp::PartialOrd>::lt>
  37: <thin_vec::IntoIter<_> as core::ops::drop::Drop>::drop::drop_non_singleton::<rustc_ast::ast::MetaItemInner>
  38: core::slice::sort::unstable::heapsort::heapsort::<(bool, u32), <(bool, u32) as core::cmp::PartialOrd>::lt>
  39: <thin_vec::IntoIter<_> as core::ops::drop::Drop>::drop::drop_non_singleton::<rustc_ast::ast::MetaItemInner>
  40: core::slice::sort::unstable::heapsort::heapsort::<(bool, u32), <(bool, u32) as core::cmp::PartialOrd>::lt>
  41: <rustc_arena::TypedArena<rustc_middle::middle::region::ScopeTree>>::grow
  42: <rayon_core::registry::WorkerThread>::wait_until_cold
  43: <rayon_core::registry::ThreadBuilder>::run
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 `C:\Users\teamy\source\repos\cloud-terrastodon\rustc-ice-2025-05-20T18_33_54-37576.txt` to your bug report

note: compiler flags: --crate-type lib -C embed-bitcode=no -C debuginfo=2 -C linker=rust-lld.exe -C incremental=[REDACTED] -Z share-generics=n -Z threads=0

note: some of the compiler flags provided by cargo are hidden

query stack during panic:
#0 [fn_sig] computing function signature of `resource_group_id::<impl at crates\azure_types\src\resource_group_id.rs:44:1: 44:33>::try_new_name`
#1 [crate_variances] computing the variances for items in this crate
#2 [variances_of] computing the variances of `pim_entra_role_settings::_::<impl at crates\azure_types\src\pim_entra_role_settings.rs:13:28: 13:39>::deserialize::__Visitor`
#3 [check_well_formed] checking that `pim_entra_role_settings::_::<impl at crates\azure_types\src\pim_entra_role_settings.rs:13:28: 13:39>::deserialize::__Visitor` is well-formed
#4 [check_mod_type_wf] checking that types are well-formed in module `pim_entra_role_settings`
#5 [analysis] running analysis passes on this crate
end of query stack
Some errors have detailed explanations: E0220, E0405, E0432.
For more information about an error, try `rustc --explain E0220`.
error: could not compile `cloud_terrastodon_azure_types` (lib) due to 6 previous errors

@TeamDman TeamDman added I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. C-bug Category: This is a bug. labels May 20, 2025
@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label May 20, 2025
@spastorino
Copy link
Member

Duplicate of #141143

@spastorino spastorino marked this as a duplicate of #141143 May 20, 2025
@spastorino spastorino reopened this May 20, 2025
@spastorino
Copy link
Member

spastorino commented May 20, 2025

Checking this again, this doesn't seem to be a duplicate of #141143 but we would need an MCVE.

@spastorino
Copy link
Member

It doesn't seem to ICE to me using the latest nightly. Can you try rustc 1.89.0-nightly (60dabef95 2025-05-19) @TeamDman ?

@spastorino
Copy link
Member

I believe this is fixed since #139981

@gstjepan2 gstjepan2 added S-needs-repro Status: This issue has no reproduction and needs a reproduction to make progress. E-needs-mcve Call for participation: This issue has a repro, but needs a Minimal Complete and Verifiable Example labels May 21, 2025
@gstjepan2
Copy link
Member

gstjepan2 commented May 21, 2025

Managed to repro on

rustc 1.88.0-nightly (b8c54d635 2025-04-20)
binary: rustc
commit-hash: b8c54d6358926028ac2fab1ec2b8665c70edb1c0
commit-date: 2025-04-20
host: x86_64-pc-windows-msvc
release: 1.88.0-nightly
LLVM version: 20.1.2

but haven't managed to repro on that version on linux and latest nightly on both windows and linux

@gstjepan2 gstjepan2 removed the S-needs-repro Status: This issue has no reproduction and needs a reproduction to make progress. label May 21, 2025
@spastorino
Copy link
Member

Managed to repro on

rustc 1.88.0-nightly (b8c54d635 2025-04-20)
binary: rustc
commit-hash: b8c54d6358926028ac2fab1ec2b8665c70edb1c0
commit-date: 2025-04-20
host: x86_64-pc-windows-msvc
release: 1.88.0-nightly
LLVM version: 20.1.2

but haven't managed to repro on that version on linux and latest nightly on both windows and linux

Right, this is what I'm saying, it's an already fixed issue. Likely fixed by #139981

@gstjepan2
Copy link
Member

Managed to repro on

rustc 1.88.0-nightly (b8c54d635 2025-04-20)
binary: rustc
commit-hash: b8c54d6358926028ac2fab1ec2b8665c70edb1c0
commit-date: 2025-04-20
host: x86_64-pc-windows-msvc
release: 1.88.0-nightly
LLVM version: 20.1.2

but haven't managed to repro on that version on linux and latest nightly on both windows and linux

Right, this is what I'm saying, it's an already fixed issue. Likely fixed by #139981

Gotcha, just wanted to confirm the repro

@TeamDman
Copy link
Author

Confirm I don't see the issue when building on

❯ rustc --version --verbose
rustc 1.89.0-nightly (bf64d66bd 2025-05-21)
binary: rustc
commit-hash: bf64d66bd58719fac2585eae5e546e5e1d9947f5
commit-date: 2025-05-21
host: x86_64-pc-windows-msvc
release: 1.89.0-nightly
LLVM version: 20.1.5

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. E-needs-mcve Call for participation: This issue has a repro, but needs a Minimal Complete and Verifiable Example I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

4 participants