rust-lang / rust

Empowering everyone to build reliable and efficient software.
https://www.rust-lang.org
Other
96.64k stars 12.49k forks source link

DefId(...) does not have a "params_in_repr" #128327

Open Naserume opened 1 month ago

Naserume commented 1 month ago

Similar Issue #108160. ICEs in nightly-2024-07-11 0c81f94b9a6207fb1fc080caa83584dea2d71fc6 and so on.

Code

use std::ops::Deref;

struct Apple((Apple, <&'static [f64] as Deref>::Target(Banana ? Citron)));

fn main(){}

Meta

rustc --version --verbose:

rustc 1.82.0-nightly (fbccf5053 2024-07-27)
binary: rustc
commit-hash: fbccf50533b1f287edccb1fc0dd847cd78a1a27e
commit-date: 2024-07-27
host: x86_64-apple-darwin
release: 1.82.0-nightly
LLVM version: 18.1.7

Error output

error: invalid `?` in type
 --> ./03C27.rs:3:63
  |
3 | struct Apple((Apple, <&'static [f64] as Deref>::Target(Banana ? Citron)));
  |                                                               ^ `?` is only allowed on expressions, not types
  |
help: if you meant to express that the type might not contain a value, use the `Option` wrapper type
  |
3 | struct Apple((Apple, <&'static [f64] as Deref>::Target(Option<Banana > Citron)));
  |                                                        +++++++       ~

error: expected one of `)` or `,`, found `Citron`
 --> ./03C27.rs:3:65
  |
3 | struct Apple((Apple, <&'static [f64] as Deref>::Target(Banana ? Citron)));
  |                                                                -^^^^^^ expected one of `)` or `,`
  |                                                                |
  |                                                                help: missing `,`

error[E0412]: cannot find type `Citron` in this scope
 --> ./03C27.rs:3:65
  |
3 | struct Apple((Apple, <&'static [f64] as Deref>::Target(Banana ? Citron)));
  |                                                                 ^^^^^^ not found in this scope

error[E0214]: parenthesized type parameters may only be used with a `Fn` trait
 --> ./03C27.rs:3:49
  |
3 | struct Apple((Apple, <&'static [f64] as Deref>::Target(Banana ? Citron)));
  |                                                 ^^^^^^^^^^^^^^^^^^^^^^^ only `Fn` traits may use parentheses
  |
help: use angle brackets instead
  |
3 | struct Apple((Apple, <&'static [f64] as Deref>::Target<Banana ? Citron>));
  |                                                       ~               ~
Backtrace

``` thread 'rustc' panicked at compiler/rustc_metadata/src/rmeta/decoder/cstore_impl.rs:217:1: DefId(2:3552 ~ core[7337]::ops::deref::Deref::Target) does not have a "params_in_repr" stack backtrace: 0: 0x107e02373 - ::fmt::h1a1159e0bb131db7 1: 0x107e4e44b - core::fmt::write::hfa1d67efcf062ea3 2: 0x107df7cbe - std::io::Write::write_fmt::h3c9394657de9d459 3: 0x107e04cca - std::panicking::default_hook::{{closure}}::hd9fe5cb6111df159 4: 0x107e0497a - std::panicking::default_hook::h5b5bd9f74fba2f71 5: 0x1112215cc - std[4bfb9a18ded71a06]::panicking::update_hook::>::{closure#0} 6: 0x107e05ab9 - std::panicking::rust_panic_with_hook::hd84c7c4b9139908c 7: 0x107e052f5 - std::panicking::begin_panic_handler::{{closure}}::he2d0d53faee85ca0 8: 0x107e02849 - std::sys::backtrace::__rust_end_short_backtrace::hb493827135471425 9: 0x107e04f0c - _rust_begin_unwind 10: 0x107e6949a - core::panicking::panic_fmt::h3d52278a6f5cc25d 11: 0x111d67e88 - rustc_metadata[82c39ad374aa2626]::rmeta::decoder::cstore_impl::provide_extern::params_in_repr::{closure#2} 12: 0x111d67c29 - rustc_metadata[82c39ad374aa2626]::rmeta::decoder::cstore_impl::provide_extern::params_in_repr 13: 0x1128a1536 - rustc_query_impl[9ad7899b1686080d]::plumbing::__rust_begin_short_backtrace::> 14: 0x112678adf - rustc_query_system[d8fb519f29fd1bee]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[9ad7899b1686080d]::plumbing::QueryCtxt, false> 15: 0x1128b6969 - rustc_query_impl[9ad7899b1686080d]::query_impl::params_in_repr::get_query_non_incr::__rust_end_short_backtrace 16: 0x111f1979f - rustc_middle[e9af03082ecb3485]::query::plumbing::query_get_at::>> 17: 0x111f07422 - rustc_middle[e9af03082ecb3485]::values::find_item_ty_spans 18: 0x111f074a5 - rustc_middle[e9af03082ecb3485]::values::find_item_ty_spans 19: 0x111f055db - rustc_middle[e9af03082ecb3485]::values::recursive_type_error 20: 0x111f05105 - >::from_cycle_error 21: 0x112845c39 - >::call_once 22: 0x115ea98c5 - rustc_query_system[d8fb519f29fd1bee]::query::plumbing::mk_cycle::>, false, false, false>, rustc_query_impl[9ad7899b1686080d]::plumbing::QueryCtxt> 23: 0x115ea78ab - rustc_query_system[d8fb519f29fd1bee]::query::plumbing::cycle_error::>, false, false, false>, rustc_query_impl[9ad7899b1686080d]::plumbing::QueryCtxt> 24: 0x11271fd66 - rustc_query_system[d8fb519f29fd1bee]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[9ad7899b1686080d]::plumbing::QueryCtxt, false> 25: 0x1128b5ee0 - rustc_query_impl[9ad7899b1686080d]::query_impl::representability::get_query_non_incr::__rust_end_short_backtrace 26: 0x1130baa4b - rustc_middle[e9af03082ecb3485]::query::plumbing::query_get_at::>> 27: 0x113131328 - rustc_ty_utils[d90f2a9f2f58eb71]::representability::representability_adt_ty 28: 0x1128a586c - rustc_query_impl[9ad7899b1686080d]::plumbing::__rust_begin_short_backtrace::> 29: 0x1126d2e53 - rustc_query_system[d8fb519f29fd1bee]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[9ad7899b1686080d]::plumbing::QueryCtxt, false> 30: 0x1128b6403 - rustc_query_impl[9ad7899b1686080d]::query_impl::representability_adt_ty::get_query_non_incr::__rust_end_short_backtrace 31: 0x113131253 - rustc_ty_utils[d90f2a9f2f58eb71]::representability::representability_ty 32: 0x11313112a - rustc_ty_utils[d90f2a9f2f58eb71]::representability::representability_ty 33: 0x1128a2c4c - rustc_query_impl[9ad7899b1686080d]::plumbing::__rust_begin_short_backtrace::> 34: 0x11271fc6f - rustc_query_system[d8fb519f29fd1bee]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[9ad7899b1686080d]::plumbing::QueryCtxt, false> 35: 0x1128b5ee0 - rustc_query_impl[9ad7899b1686080d]::query_impl::representability::get_query_non_incr::__rust_end_short_backtrace 36: 0x1130baa4b - rustc_middle[e9af03082ecb3485]::query::plumbing::query_get_at::>> 37: 0x113130f41 - rustc_ty_utils[d90f2a9f2f58eb71]::representability::representability 38: 0x1128a2c4c - rustc_query_impl[9ad7899b1686080d]::plumbing::__rust_begin_short_backtrace::> 39: 0x11271fc6f - rustc_query_system[d8fb519f29fd1bee]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[9ad7899b1686080d]::plumbing::QueryCtxt, false> 40: 0x1128b5ee0 - rustc_query_impl[9ad7899b1686080d]::query_impl::representability::get_query_non_incr::__rust_end_short_backtrace 41: 0x1115786e6 - rustc_hir_analysis[b58127314b372e6e]::check::wfcheck::check_type_defn 42: 0x11156ee07 - rustc_hir_analysis[b58127314b372e6e]::check::wfcheck::check_well_formed 43: 0x1128a2d0c - rustc_query_impl[9ad7899b1686080d]::plumbing::__rust_begin_short_backtrace::> 44: 0x112716c6f - rustc_query_system[d8fb519f29fd1bee]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[9ad7899b1686080d]::plumbing::QueryCtxt, false> 45: 0x1128ee510 - rustc_query_impl[9ad7899b1686080d]::query_impl::check_well_formed::get_query_non_incr::__rust_end_short_backtrace 46: 0x111459d32 - rustc_middle[e9af03082ecb3485]::query::plumbing::query_ensure_error_guaranteed::>, ()> 47: 0x11157f771 - rustc_hir_analysis[b58127314b372e6e]::check::wfcheck::check_mod_type_wf 48: 0x1128a2cdc - rustc_query_impl[9ad7899b1686080d]::plumbing::__rust_begin_short_backtrace::> 49: 0x1126c9fe9 - rustc_query_system[d8fb519f29fd1bee]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[9ad7899b1686080d]::plumbing::QueryCtxt, false> 50: 0x1128cab20 - rustc_query_impl[9ad7899b1686080d]::query_impl::check_mod_type_wf::get_query_non_incr::__rust_end_short_backtrace 51: 0x11160a56c - rustc_hir_analysis[b58127314b372e6e]::check_crate 52: 0x111b3ecb7 - rustc_interface[33c7848e7de359ea]::passes::run_required_analyses 53: 0x111b41153 - rustc_interface[33c7848e7de359ea]::passes::analysis 54: 0x1128a73ac - rustc_query_impl[9ad7899b1686080d]::plumbing::__rust_begin_short_backtrace::> 55: 0x112683dce - rustc_query_system[d8fb519f29fd1bee]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[9ad7899b1686080d]::plumbing::QueryCtxt, false> 56: 0x1128b1907 - rustc_query_impl[9ad7899b1686080d]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace 57: 0x1111c28b7 - >::enter::, rustc_driver_impl[563a5c8fc496fc05]::run_compiler::{closure#0}::{closure#1}::{closure#5}> 58: 0x11121fe7b - rustc_interface[33c7848e7de359ea]::interface::run_compiler::, rustc_driver_impl[563a5c8fc496fc05]::run_compiler::{closure#0}>::{closure#1} 59: 0x11120b391 - std[4bfb9a18ded71a06]::sys::backtrace::__rust_begin_short_backtrace::, rustc_driver_impl[563a5c8fc496fc05]::run_compiler::{closure#0}>::{closure#1}, core[7337c6746b2dc2b4]::result::Result<(), rustc_span[5a29b2bebce1e1fa]::ErrorGuaranteed>>::{closure#0}, core[7337c6746b2dc2b4]::result::Result<(), rustc_span[5a29b2bebce1e1fa]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[7337c6746b2dc2b4]::result::Result<(), rustc_span[5a29b2bebce1e1fa]::ErrorGuaranteed>> 60: 0x11122a606 - <::spawn_unchecked_, rustc_driver_impl[563a5c8fc496fc05]::run_compiler::{closure#0}>::{closure#1}, core[7337c6746b2dc2b4]::result::Result<(), rustc_span[5a29b2bebce1e1fa]::ErrorGuaranteed>>::{closure#0}, core[7337c6746b2dc2b4]::result::Result<(), rustc_span[5a29b2bebce1e1fa]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[7337c6746b2dc2b4]::result::Result<(), rustc_span[5a29b2bebce1e1fa]::ErrorGuaranteed>>::{closure#1} as core[7337c6746b2dc2b4]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} 61: 0x107e0eacb - std::sys::pal::unix::thread::Thread::new::thread_start::hc7a03ce7c26595a5 62: 0x7ff801f5318b - __pthread_start 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/Documents/rustc-ice-2024-07-29T01_35_09-6352.txt` to your bug report query stack during panic: #0 [params_in_repr] finding type parameters in the representation #1 [representability_adt_ty] checking if `Apple` is representable end of query stack error: aborting due to 4 previous errors Some errors have detailed explanations: E0214, E0412. For more information about an error, try `rustc --explain E0214`. ```

theemathas commented 1 month ago

Here's a reproduction that doesn't use Deref

src/lib.rs:

use second::SomeTrait;

struct Foo;
struct Bar;

impl SomeTrait for Foo {
    type Associated = Bar;
}

struct Apple((Apple, <Foo as SomeTrait>::Associated<Banana?>));

second/src/lib.rs:

pub trait SomeTrait {
    type Associated;
}
Cargo.toml Boilerplate Cargo.toml: ```toml [workspace] members = ["second"] [package] name = "first" version = "0.1.0" edition = "2021" [dependencies] second = { path = "second" } ``` second/Cargo.toml: ```toml [package] name = "second" version = "0.1.0" edition = "2021" [dependencies] ```
rustc-ice-2024-07-29T02_57_15-8524.txt ``` thread 'rustc' panicked at compiler/rustc_metadata/src/rmeta/decoder/cstore_impl.rs:217:1: DefId(20:4 ~ second[b3e0]::SomeTrait::Associated) does not have a "params_in_repr" stack backtrace: 0: 0x103935680 - std::backtrace::Backtrace::create::hae4cc24391157d05 1: 0x10d89f690 - as core[d4a6e92ff1ac8c24]::ops::function::Fn<(&dyn for<'a, 'b> core[d4a6e92ff1ac8c24]::ops::function::Fn<(&'a std[7a0719228054052a]::panic::PanicHookInfo<'b>,), Output = ()> + core[d4a6e92ff1ac8c24]::marker::Send + core[d4a6e92ff1ac8c24]::marker::Sync, &std[7a0719228054052a]::panic::PanicHookInfo)>>::call 2: 0x10394e83c - std::panicking::rust_panic_with_hook::h1d87874b94b8a178 3: 0x10394e14c - std::panicking::begin_panic_handler::{{closure}}::hcaa207ee4a92d54b 4: 0x10394bb9c - std::sys::backtrace::__rust_end_short_backtrace::h07884ebaad5621e2 5: 0x10394de14 - _rust_begin_unwind 6: 0x1039a8958 - core::panicking::panic_fmt::h40c53935d133e936 7: 0x10e37521c - rustc_metadata[661372dd6f43e03b]::rmeta::decoder::cstore_impl::provide_extern::params_in_repr::{closure#2} 8: 0x10e37500c - rustc_metadata[661372dd6f43e03b]::rmeta::decoder::cstore_impl::provide_extern::params_in_repr 9: 0x10ed8cbc0 - rustc_query_impl[88a2a0151ce45b5f]::plumbing::__rust_begin_short_backtrace::> 10: 0x10eecd670 - >::call_once 11: 0x10eca63d8 - rustc_query_system[c06a29aa1aa29d73]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[88a2a0151ce45b5f]::plumbing::QueryCtxt, true> 12: 0x10eed893c - rustc_query_impl[88a2a0151ce45b5f]::query_impl::params_in_repr::get_query_incr::__rust_end_short_backtrace 13: 0x10e4b5c00 - rustc_middle[a37891ff350d2756]::query::plumbing::query_get_at::>> 14: 0x10e4b4e08 - rustc_middle[a37891ff350d2756]::values::find_item_ty_spans 15: 0x10e4b4e58 - rustc_middle[a37891ff350d2756]::values::find_item_ty_spans 16: 0x10e4b3d68 - rustc_middle[a37891ff350d2756]::values::recursive_type_error 17: 0x10e52bd90 - >::from_cycle_error 18: 0x10ef708b4 - >::call_once 19: 0x111e68f54 - rustc_query_system[c06a29aa1aa29d73]::query::plumbing::mk_cycle::>, false, false, false>, rustc_query_impl[88a2a0151ce45b5f]::plumbing::QueryCtxt> 20: 0x111e67230 - rustc_query_system[c06a29aa1aa29d73]::query::plumbing::cycle_error::>, false, false, false>, rustc_query_impl[88a2a0151ce45b5f]::plumbing::QueryCtxt> 21: 0x10ed32e1c - rustc_query_system[c06a29aa1aa29d73]::query::plumbing::try_execute_query::>, true, false, false>, rustc_query_impl[88a2a0151ce45b5f]::plumbing::QueryCtxt, true> 22: 0x10eed846c - rustc_query_impl[88a2a0151ce45b5f]::query_impl::representability::get_query_incr::__rust_end_short_backtrace 23: 0x10f6ab518 - rustc_middle[a37891ff350d2756]::query::plumbing::query_get_at::>> 24: 0x10f6bed78 - rustc_ty_utils[5e8d301e418adb13]::representability::representability_adt_ty 25: 0x10ed9184c - rustc_query_impl[88a2a0151ce45b5f]::plumbing::__rust_begin_short_backtrace::> 26: 0x10ef717a8 - >::call_once 27: 0x10ef5ae4c - >::with_anon_task::>, true, false, false>, rustc_query_impl[88a2a0151ce45b5f]::plumbing::QueryCtxt>::{closure#2}::{closure#0}, rustc_middle[a37891ff350d2756]::query::erase::Erased<[u8; 1usize]>> 28: 0x10ecec73c - rustc_query_system[c06a29aa1aa29d73]::query::plumbing::try_execute_query::>, true, false, false>, rustc_query_impl[88a2a0151ce45b5f]::plumbing::QueryCtxt, true> 29: 0x10eed86d0 - rustc_query_impl[88a2a0151ce45b5f]::query_impl::representability_adt_ty::get_query_incr::__rust_end_short_backtrace 30: 0x10f6beca0 - rustc_ty_utils[5e8d301e418adb13]::representability::representability_ty 31: 0x10f6beb7c - rustc_ty_utils[5e8d301e418adb13]::representability::representability_ty 32: 0x10ed8e4dc - rustc_query_impl[88a2a0151ce45b5f]::plumbing::__rust_begin_short_backtrace::> 33: 0x10ef7089c - >::call_once 34: 0x10ef5bb78 - >::with_anon_task::>, true, false, false>, rustc_query_impl[88a2a0151ce45b5f]::plumbing::QueryCtxt>::{closure#2}::{closure#0}, rustc_middle[a37891ff350d2756]::query::erase::Erased<[u8; 1usize]>> 35: 0x10ed32d78 - rustc_query_system[c06a29aa1aa29d73]::query::plumbing::try_execute_query::>, true, false, false>, rustc_query_impl[88a2a0151ce45b5f]::plumbing::QueryCtxt, true> 36: 0x10eed846c - rustc_query_impl[88a2a0151ce45b5f]::query_impl::representability::get_query_incr::__rust_end_short_backtrace 37: 0x10f6ab518 - rustc_middle[a37891ff350d2756]::query::plumbing::query_get_at::>> 38: 0x10f6be990 - rustc_ty_utils[5e8d301e418adb13]::representability::representability 39: 0x10ed8e4dc - rustc_query_impl[88a2a0151ce45b5f]::plumbing::__rust_begin_short_backtrace::> 40: 0x10ef7089c - >::call_once 41: 0x10ef5bb78 - >::with_anon_task::>, true, false, false>, rustc_query_impl[88a2a0151ce45b5f]::plumbing::QueryCtxt>::{closure#2}::{closure#0}, rustc_middle[a37891ff350d2756]::query::erase::Erased<[u8; 1usize]>> 42: 0x10ed32d78 - rustc_query_system[c06a29aa1aa29d73]::query::plumbing::try_execute_query::>, true, false, false>, rustc_query_impl[88a2a0151ce45b5f]::plumbing::QueryCtxt, true> 43: 0x10eed846c - rustc_query_impl[88a2a0151ce45b5f]::query_impl::representability::get_query_incr::__rust_end_short_backtrace 44: 0x10dc68048 - rustc_hir_analysis[e3a4ae41744041df]::check::wfcheck::check_type_defn 45: 0x10dc66094 - rustc_hir_analysis[e3a4ae41744041df]::check::wfcheck::check_well_formed 46: 0x10ed8e600 - rustc_query_impl[88a2a0151ce45b5f]::plumbing::__rust_begin_short_backtrace::> 47: 0x10eece9c0 - >::call_once 48: 0x10ed2a47c - rustc_query_system[c06a29aa1aa29d73]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[88a2a0151ce45b5f]::plumbing::QueryCtxt, true> 49: 0x10eef396c - rustc_query_impl[88a2a0151ce45b5f]::query_impl::check_well_formed::get_query_incr::__rust_end_short_backtrace 50: 0x10db18810 - rustc_middle[a37891ff350d2756]::query::plumbing::query_ensure_error_guaranteed::>, ()> 51: 0x10db06ca8 - ::run::, rustc_data_structures[5a892ce82cae001a]::sync::parallel::enabled::try_par_for_each_in<&[rustc_hir[7cdae7b4d393ecb6]::hir::ImplItemId], rustc_span[d9b50236a4224dd8]::ErrorGuaranteed, ::par_impl_items::{closure#0}>::{closure#0}::{closure#0}::{closure#0}> 52: 0x10db5c430 - ::par_items:: 53: 0x10dc6c814 - rustc_hir_analysis[e3a4ae41744041df]::check::wfcheck::check_mod_type_wf 54: 0x10ed8e5b4 - rustc_query_impl[88a2a0151ce45b5f]::plumbing::__rust_begin_short_backtrace::> 55: 0x10eece744 - >::call_once 56: 0x10ecf29e8 - rustc_query_system[c06a29aa1aa29d73]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[88a2a0151ce45b5f]::plumbing::QueryCtxt, true> 57: 0x10eee46a8 - rustc_query_impl[88a2a0151ce45b5f]::query_impl::check_mod_type_wf::get_query_incr::__rust_end_short_backtrace 58: 0x10db06e84 - ::run::<(), rustc_data_structures[5a892ce82cae001a]::sync::parallel::enabled::par_for_each_in<&rustc_hir[7cdae7b4d393ecb6]::hir_id::OwnerId, &[rustc_hir[7cdae7b4d393ecb6]::hir_id::OwnerId], ::par_for_each_module::{closure#0}>::{closure#0}::{closure#0}::{closure#0}> 59: 0x10db4972c - rustc_hir_analysis[e3a4ae41744041df]::check_crate 60: 0x10e1a39dc - rustc_interface[daa88bac46d20e4c]::passes::analysis 61: 0x10ed9387c - rustc_query_impl[88a2a0151ce45b5f]::plumbing::__rust_begin_short_backtrace::> 62: 0x10eeb5fbc - >::call_once 63: 0x10ecaf3fc - rustc_query_system[c06a29aa1aa29d73]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[88a2a0151ce45b5f]::plumbing::QueryCtxt, true> 64: 0x10eed5a94 - rustc_query_impl[88a2a0151ce45b5f]::query_impl::analysis::get_query_incr::__rust_end_short_backtrace 65: 0x10d879bd8 - ::enter::> 66: 0x10d8e31f4 - ::enter::, rustc_span[d9b50236a4224dd8]::ErrorGuaranteed>> 67: 0x10d8b2750 - >::set::, rustc_driver_impl[4bac58de035c3bd8]::run_compiler::{closure#0}>::{closure#1}, core[d4a6e92ff1ac8c24]::result::Result<(), rustc_span[d9b50236a4224dd8]::ErrorGuaranteed>>::{closure#0}, core[d4a6e92ff1ac8c24]::result::Result<(), rustc_span[d9b50236a4224dd8]::ErrorGuaranteed>>::{closure#0}::{closure#0}::{closure#0}, core[d4a6e92ff1ac8c24]::result::Result<(), rustc_span[d9b50236a4224dd8]::ErrorGuaranteed>> 68: 0x10d890034 - rustc_span[d9b50236a4224dd8]::create_session_globals_then::, rustc_interface[daa88bac46d20e4c]::util::run_in_thread_with_globals, rustc_driver_impl[4bac58de035c3bd8]::run_compiler::{closure#0}>::{closure#1}, core[d4a6e92ff1ac8c24]::result::Result<(), rustc_span[d9b50236a4224dd8]::ErrorGuaranteed>>::{closure#0}, core[d4a6e92ff1ac8c24]::result::Result<(), rustc_span[d9b50236a4224dd8]::ErrorGuaranteed>>::{closure#0}::{closure#0}::{closure#0}> 69: 0x10d8a5cf0 - std[7a0719228054052a]::sys::backtrace::__rust_begin_short_backtrace::, rustc_driver_impl[4bac58de035c3bd8]::run_compiler::{closure#0}>::{closure#1}, core[d4a6e92ff1ac8c24]::result::Result<(), rustc_span[d9b50236a4224dd8]::ErrorGuaranteed>>::{closure#0}, core[d4a6e92ff1ac8c24]::result::Result<(), rustc_span[d9b50236a4224dd8]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[d4a6e92ff1ac8c24]::result::Result<(), rustc_span[d9b50236a4224dd8]::ErrorGuaranteed>> 70: 0x10d8bbe30 - <::spawn_unchecked_, rustc_driver_impl[4bac58de035c3bd8]::run_compiler::{closure#0}>::{closure#1}, core[d4a6e92ff1ac8c24]::result::Result<(), rustc_span[d9b50236a4224dd8]::ErrorGuaranteed>>::{closure#0}, core[d4a6e92ff1ac8c24]::result::Result<(), rustc_span[d9b50236a4224dd8]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[d4a6e92ff1ac8c24]::result::Result<(), rustc_span[d9b50236a4224dd8]::ErrorGuaranteed>>::{closure#1} as core[d4a6e92ff1ac8c24]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} 71: 0x103956de4 - std::sys::pal::unix::thread::Thread::new::thread_start::h83845b13417e2e4f 72: 0x18ec5ef94 - __pthread_joiner_wake rustc version: 1.82.0-nightly (7120fdac7 2024-07-25) platform: aarch64-apple-darwin query stack during panic: #0 [params_in_repr] finding type parameters in the representation #1 [representability_adt_ty] checking if `Apple` is representable #2 [representability] checking if `Apple::0` is representable #3 [representability] checking if `Apple` is representable #4 [check_well_formed] checking that `Apple` is well-formed #5 [check_mod_type_wf] checking that types are well-formed in top-level module #6 [analysis] running analysis passes on this crate end of query stack ```