Skip to content
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

Encountered incremental compilation error with find_field(a5f984281f1e0bb0-ee8ea99685b18732) #125678

Open
jflatow opened this issue May 28, 2024 · 5 comments
Labels
A-incr-comp Area: Incremental compilation A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..) A-macros-2.0 Area: Declarative macros 2.0 (#39412) C-bug Category: This is a bug. F-decl_macro `#![feature(decl_macro)]` I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ S-needs-repro Status: This issue has no reproduction and needs a reproduction to make progress. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@jflatow
Copy link

jflatow commented May 28, 2024

I cannot share the code, however since I was requested to file the unexpected panic in the compiler, I am attaching the stacktrace. This occurs when I change a bound from:
impl<G: H, T: N<G>> Trait<dyn N<G>> for T where T: 'static
to
impl<G: H, T: N<G> + 'static> Trait<dyn N<G>> for T

Meta and Error Output

thread 'rustc' panicked at /rustc/84b40fc908c3adc7e0e470b3fbaa264df0e122b8/compiler/rustc_query_system/src/query/plumbing.rs:726:9:
Found unstable fingerprints for find_field(a5f984281f1e0bb0-ee8ea99685b18732): None
stack backtrace:
   0:        0x101441038 - std::backtrace::Backtrace::create::h80141d8248a83b53
   1:        0x10acf78b0 - <alloc[719386f0d9f36626]::boxed::Box<rustc_driver_impl[7a60ac4377fdb13f]::install_ice_hook::{closure#0}> as core[d272a70a7efa9590]::ops::function::Fn<(&dyn for<'a, 'b> core[d272a70a7efa9590]::ops::function::Fn<(&'a core[d272a70a7efa9590]::panic::panic_info::PanicInfo<'b>,), Output = ()> + core[d272a70a7efa9590]::marker::Send + core[d272a70a7efa9590]::marker::Sync, &core[d272a70a7efa9590]::panic::panic_info::PanicInfo)>>::call
   2:        0x101459db0 - std::panicking::rust_panic_with_hook::h2fd94c4de3d2d4e8
   3:        0x1014597c4 - std::panicking::begin_panic_handler::{{closure}}::hb98cc9edc890a6c2
   4:        0x1014573e8 - std::sys_common::backtrace::__rust_end_short_backtrace::h6e8ff8b1c4ef6435
   5:        0x101459534 - _rust_begin_unwind
   6:        0x1014b52dc - core::panicking::panic_fmt::hbc7689a26665519e
   7:        0x10efec880 - rustc_query_system[86320e985ad85d60]::query::plumbing::incremental_verify_ich_failed::<rustc_middle[a784bbf211e613f7]::ty::context::TyCtxt>.specialized.3
   8:        0x10c00a81c - rustc_query_system[86320e985ad85d60]::query::plumbing::incremental_verify_ich::<rustc_middle[a784bbf211e613f7]::ty::context::TyCtxt, rustc_middle[a784bbf211e613f7]::query::erase::Erased<[u8; 4usize]>>
   9:        0x10bfdf394 - rustc_query_system[86320e985ad85d60]::query::plumbing::try_execute_query::<rustc_query_impl[d631a5f5bfb0b403]::DynamicConfig<rustc_query_system[86320e985ad85d60]::query::caches::DefaultCache<(rustc_span[bf3e504c8b161d65]::def_id::DefId, rustc_span[bf3e504c8b161d65]::symbol::Ident), rustc_middle[a784bbf211e613f7]::query::erase::Erased<[u8; 4usize]>>, false, false, false>, rustc_query_impl[d631a5f5bfb0b403]::plumbing::QueryCtxt, true>
  10:        0x10c10c824 - rustc_query_impl[d631a5f5bfb0b403]::query_impl::find_field::get_query_incr::__rust_end_short_backtrace
  11:        0x10b14dc00 - <rustc_hir_typeck[6e49abfc25ac21c6]::fn_ctxt::FnCtxt>::check_expr_kind
  12:        0x10b0f9bac - <rustc_hir_typeck[6e49abfc25ac21c6]::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args
  13:        0x10b14d3d8 - <rustc_hir_typeck[6e49abfc25ac21c6]::fn_ctxt::FnCtxt>::check_expr_kind
  14:        0x10b0f9bac - <rustc_hir_typeck[6e49abfc25ac21c6]::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args
  15:        0x10b14d3d8 - <rustc_hir_typeck[6e49abfc25ac21c6]::fn_ctxt::FnCtxt>::check_expr_kind
  16:        0x10b0f9bac - <rustc_hir_typeck[6e49abfc25ac21c6]::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args
  17:        0x10b14d038 - <rustc_hir_typeck[6e49abfc25ac21c6]::fn_ctxt::FnCtxt>::check_expr_kind
  18:        0x10b0f9bac - <rustc_hir_typeck[6e49abfc25ac21c6]::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args
  19:        0x10b14e294 - <rustc_hir_typeck[6e49abfc25ac21c6]::fn_ctxt::FnCtxt>::check_expr_kind
  20:        0x10b0f9bac - <rustc_hir_typeck[6e49abfc25ac21c6]::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args
  21:        0x10b14d3d8 - <rustc_hir_typeck[6e49abfc25ac21c6]::fn_ctxt::FnCtxt>::check_expr_kind
  22:        0x10b0f9bac - <rustc_hir_typeck[6e49abfc25ac21c6]::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args
  23:        0x10b116398 - <rustc_hir_typeck[6e49abfc25ac21c6]::fn_ctxt::FnCtxt>::check_block_with_expected
  24:        0x10b0f9bac - <rustc_hir_typeck[6e49abfc25ac21c6]::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args
  25:        0x10b0fa6a4 - <rustc_hir_typeck[6e49abfc25ac21c6]::fn_ctxt::FnCtxt>::check_return_expr
  26:        0x10b1d2350 - rustc_hir_typeck[6e49abfc25ac21c6]::check::check_fn
  27:        0x10b1b690c - rustc_hir_typeck[6e49abfc25ac21c6]::typeck
  28:        0x10c056088 - rustc_query_impl[d631a5f5bfb0b403]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[d631a5f5bfb0b403]::query_impl::typeck::dynamic_query::{closure#2}::{closure#0}, rustc_middle[a784bbf211e613f7]::query::erase::Erased<[u8; 8usize]>>
  29:        0x10c09c740 - <rustc_query_impl[d631a5f5bfb0b403]::query_impl::typeck::dynamic_query::{closure#2} as core[d272a70a7efa9590]::ops::function::FnOnce<(rustc_middle[a784bbf211e613f7]::ty::context::TyCtxt, rustc_span[bf3e504c8b161d65]::def_id::LocalDefId)>>::call_once
  30:        0x10bfff5cc - rustc_query_system[86320e985ad85d60]::query::plumbing::try_execute_query::<rustc_query_impl[d631a5f5bfb0b403]::DynamicConfig<rustc_query_system[86320e985ad85d60]::query::caches::VecCache<rustc_span[bf3e504c8b161d65]::def_id::LocalDefId, rustc_middle[a784bbf211e613f7]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[d631a5f5bfb0b403]::plumbing::QueryCtxt, true>
  31:        0x10c135c34 - rustc_query_impl[d631a5f5bfb0b403]::query_impl::typeck::get_query_incr::__rust_end_short_backtrace
  32:        0x10af3cab0 - <rustc_middle[a784bbf211e613f7]::hir::map::Map>::par_body_owners::<rustc_hir_analysis[2bbc207b2e1cff80]::check_crate::{closure#4}>::{closure#0}
  33:        0x10afa1e64 - <rustc_data_structures[f340f78e6b6d7492]::sync::parallel::ParallelGuard>::run::<(), rustc_data_structures[f340f78e6b6d7492]::sync::parallel::enabled::par_for_each_in<&rustc_span[bf3e504c8b161d65]::def_id::LocalDefId, &[rustc_span[bf3e504c8b161d65]::def_id::LocalDefId], <rustc_middle[a784bbf211e613f7]::hir::map::Map>::par_body_owners<rustc_hir_analysis[2bbc207b2e1cff80]::check_crate::{closure#4}>::{closure#0}>::{closure#0}::{closure#0}::{closure#0}>
  34:        0x10b00fc5c - rustc_hir_analysis[2bbc207b2e1cff80]::check_crate
  35:        0x10b47d788 - rustc_interface[3a0f763c368c80a]::passes::analysis
  36:        0x10c056128 - rustc_query_impl[d631a5f5bfb0b403]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[d631a5f5bfb0b403]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[a784bbf211e613f7]::query::erase::Erased<[u8; 1usize]>>
  37:        0x10c1fb674 - <rustc_query_impl[d631a5f5bfb0b403]::query_impl::analysis::dynamic_query::{closure#2} as core[d272a70a7efa9590]::ops::function::FnOnce<(rustc_middle[a784bbf211e613f7]::ty::context::TyCtxt, ())>>::call_once
  38:        0x10bf73d28 - rustc_query_system[86320e985ad85d60]::query::plumbing::try_execute_query::<rustc_query_impl[d631a5f5bfb0b403]::DynamicConfig<rustc_query_system[86320e985ad85d60]::query::caches::SingleCache<rustc_middle[a784bbf211e613f7]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[d631a5f5bfb0b403]::plumbing::QueryCtxt, true>
  39:        0x10c1fe2cc - rustc_query_impl[d631a5f5bfb0b403]::query_impl::analysis::get_query_incr::__rust_end_short_backtrace
  40:        0x10acff868 - <rustc_middle[a784bbf211e613f7]::ty::context::GlobalCtxt>::enter::<rustc_driver_impl[7a60ac4377fdb13f]::run_compiler::{closure#0}::{closure#1}::{closure#3}, core[d272a70a7efa9590]::result::Result<(), rustc_span[bf3e504c8b161d65]::ErrorGuaranteed>>
  41:        0x10acaa000 - <rustc_interface[3a0f763c368c80a]::interface::Compiler>::enter::<rustc_driver_impl[7a60ac4377fdb13f]::run_compiler::{closure#0}::{closure#1}, core[d272a70a7efa9590]::result::Result<core[d272a70a7efa9590]::option::Option<rustc_interface[3a0f763c368c80a]::queries::Linker>, rustc_span[bf3e504c8b161d65]::ErrorGuaranteed>>
  42:        0x10acfe178 - <scoped_tls[c3d37789c751d33]::ScopedKey<rustc_span[bf3e504c8b161d65]::SessionGlobals>>::set::<rustc_interface[3a0f763c368c80a]::util::run_in_thread_with_globals<rustc_interface[3a0f763c368c80a]::util::run_in_thread_pool_with_globals<rustc_interface[3a0f763c368c80a]::interface::run_compiler<core[d272a70a7efa9590]::result::Result<(), rustc_span[bf3e504c8b161d65]::ErrorGuaranteed>, rustc_driver_impl[7a60ac4377fdb13f]::run_compiler::{closure#0}>::{closure#1}, core[d272a70a7efa9590]::result::Result<(), rustc_span[bf3e504c8b161d65]::ErrorGuaranteed>>::{closure#0}, core[d272a70a7efa9590]::result::Result<(), rustc_span[bf3e504c8b161d65]::ErrorGuaranteed>>::{closure#0}::{closure#0}::{closure#0}, core[d272a70a7efa9590]::result::Result<(), rustc_span[bf3e504c8b161d65]::ErrorGuaranteed>>
  43:        0x10acdc6b8 - rustc_span[bf3e504c8b161d65]::create_session_globals_then::<core[d272a70a7efa9590]::result::Result<(), rustc_span[bf3e504c8b161d65]::ErrorGuaranteed>, rustc_interface[3a0f763c368c80a]::util::run_in_thread_with_globals<rustc_interface[3a0f763c368c80a]::util::run_in_thread_pool_with_globals<rustc_interface[3a0f763c368c80a]::interface::run_compiler<core[d272a70a7efa9590]::result::Result<(), rustc_span[bf3e504c8b161d65]::ErrorGuaranteed>, rustc_driver_impl[7a60ac4377fdb13f]::run_compiler::{closure#0}>::{closure#1}, core[d272a70a7efa9590]::result::Result<(), rustc_span[bf3e504c8b161d65]::ErrorGuaranteed>>::{closure#0}, core[d272a70a7efa9590]::result::Result<(), rustc_span[bf3e504c8b161d65]::ErrorGuaranteed>>::{closure#0}::{closure#0}::{closure#0}>
  44:        0x10ad06ca4 - std[78bc1753afde8562]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[3a0f763c368c80a]::util::run_in_thread_with_globals<rustc_interface[3a0f763c368c80a]::util::run_in_thread_pool_with_globals<rustc_interface[3a0f763c368c80a]::interface::run_compiler<core[d272a70a7efa9590]::result::Result<(), rustc_span[bf3e504c8b161d65]::ErrorGuaranteed>, rustc_driver_impl[7a60ac4377fdb13f]::run_compiler::{closure#0}>::{closure#1}, core[d272a70a7efa9590]::result::Result<(), rustc_span[bf3e504c8b161d65]::ErrorGuaranteed>>::{closure#0}, core[d272a70a7efa9590]::result::Result<(), rustc_span[bf3e504c8b161d65]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[d272a70a7efa9590]::result::Result<(), rustc_span[bf3e504c8b161d65]::ErrorGuaranteed>>
  45:        0x10ad07334 - <<std[78bc1753afde8562]::thread::Builder>::spawn_unchecked_<rustc_interface[3a0f763c368c80a]::util::run_in_thread_with_globals<rustc_interface[3a0f763c368c80a]::util::run_in_thread_pool_with_globals<rustc_interface[3a0f763c368c80a]::interface::run_compiler<core[d272a70a7efa9590]::result::Result<(), rustc_span[bf3e504c8b161d65]::ErrorGuaranteed>, rustc_driver_impl[7a60ac4377fdb13f]::run_compiler::{closure#0}>::{closure#1}, core[d272a70a7efa9590]::result::Result<(), rustc_span[bf3e504c8b161d65]::ErrorGuaranteed>>::{closure#0}, core[d272a70a7efa9590]::result::Result<(), rustc_span[bf3e504c8b161d65]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[d272a70a7efa9590]::result::Result<(), rustc_span[bf3e504c8b161d65]::ErrorGuaranteed>>::{closure#2} as core[d272a70a7efa9590]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  46:        0x101462708 - std::sys::pal::unix::thread::Thread::new::thread_start::h34a6ef4a24114659
  47:        0x186c2bfa8 - __pthread_joiner_wake


rustc version: 1.80.0-nightly (84b40fc90 2024-05-27)
platform: aarch64-apple-darwin
@jflatow jflatow added C-bug Category: This is a bug. 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. labels May 28, 2024
@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label May 28, 2024
@workingjubilee workingjubilee added the A-incr-comp Area: Incremental compilation label May 29, 2024
@Noratrieb
Copy link
Member

since you do have a reproducer, could you try it with RUSTFLAGS=-Zincremenral-verify-ich? that may pinpoint the bug

@jflatow
Copy link
Author

jflatow commented Jun 1, 2024

since you do have a reproducer, could you try it with RUSTFLAGS=-Zincremenral-verify-ich? that may pinpoint the bug

I've moved on in the project, so I can't run on exactly the same code, but I keep hitting roughly the same issue, here's another dump when I add that flag (seems not to change anything):

thread 'rustc' panicked at /rustc/84b40fc908c3adc7e0e470b3fbaa264df0e122b8/compiler/rustc_query_system/src/query/plumbing.rs:726:9:
Found unstable fingerprints for find_field(9d57321046db316f-2e258fcf3cb49246): None
stack backtrace:
   0:        0x102be5038 - std::backtrace::Backtrace::create::h80141d8248a83b53
   1:        0x10c49b8b0 - <alloc[719386f0d9f36626]::boxed::Box<rustc_driver_impl[7a60ac4377fdb13f]::install_ice_hook::{closure#0}> as core[d272a70a7efa9590]::ops::function::Fn<(&dyn for<'a, 'b> core[d272a70a7efa9590]::ops::function::Fn<(&'a core[d272a70a7efa9590]::panic::panic_info::PanicInfo<'b>,), Output = ()> + core[d272a70a7efa9590]::marker::Send + core[d272a70a7efa9590]::marker::Sync, &core[d272a70a7efa9590]::panic::panic_info::PanicInfo)>>::call
   2:        0x102bfddb0 - std::panicking::rust_panic_with_hook::h2fd94c4de3d2d4e8
   3:        0x102bfd7c4 - std::panicking::begin_panic_handler::{{closure}}::hb98cc9edc890a6c2
   4:        0x102bfb3e8 - std::sys_common::backtrace::__rust_end_short_backtrace::h6e8ff8b1c4ef6435
   5:        0x102bfd534 - _rust_begin_unwind
   6:        0x102c592dc - core::panicking::panic_fmt::hbc7689a26665519e
   7:        0x110790880 - rustc_query_system[86320e985ad85d60]::query::plumbing::incremental_verify_ich_failed::<rustc_middle[a784bbf211e613f7]::ty::context::TyCtxt>.specialized.3
   8:        0x10d7ae81c - rustc_query_system[86320e985ad85d60]::query::plumbing::incremental_verify_ich::<rustc_middle[a784bbf211e613f7]::ty::context::TyCtxt, rustc_middle[a784bbf211e613f7]::query::erase::Erased<[u8; 4usize]>>
   9:        0x10d783394 - rustc_query_system[86320e985ad85d60]::query::plumbing::try_execute_query::<rustc_query_impl[d631a5f5bfb0b403]::DynamicConfig<rustc_query_system[86320e985ad85d60]::query::caches::DefaultCache<(rustc_span[bf3e504c8b161d65]::def_id::DefId, rustc_span[bf3e504c8b161d65]::symbol::Ident), rustc_middle[a784bbf211e613f7]::query::erase::Erased<[u8; 4usize]>>, false, false, false>, rustc_query_impl[d631a5f5bfb0b403]::plumbing::QueryCtxt, true>
  10:        0x10d8b0824 - rustc_query_impl[d631a5f5bfb0b403]::query_impl::find_field::get_query_incr::__rust_end_short_backtrace
  11:        0x10c8f1c00 - <rustc_hir_typeck[6e49abfc25ac21c6]::fn_ctxt::FnCtxt>::check_expr_kind
  12:        0x10c89dbac - <rustc_hir_typeck[6e49abfc25ac21c6]::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args
  13:        0x10c8f13d8 - <rustc_hir_typeck[6e49abfc25ac21c6]::fn_ctxt::FnCtxt>::check_expr_kind
  14:        0x10c89dbac - <rustc_hir_typeck[6e49abfc25ac21c6]::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args
  15:        0x10c8f2ab8 - <rustc_hir_typeck[6e49abfc25ac21c6]::fn_ctxt::FnCtxt>::check_expr_kind
  16:        0x10c89dbac - <rustc_hir_typeck[6e49abfc25ac21c6]::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args
  17:        0x10c8b9a9c - <rustc_hir_typeck[6e49abfc25ac21c6]::fn_ctxt::FnCtxt>::check_decl
  18:        0x10c8ba110 - <rustc_hir_typeck[6e49abfc25ac21c6]::fn_ctxt::FnCtxt>::check_block_with_expected
  19:        0x10c89dbac - <rustc_hir_typeck[6e49abfc25ac21c6]::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args
  20:        0x10c89e6a4 - <rustc_hir_typeck[6e49abfc25ac21c6]::fn_ctxt::FnCtxt>::check_return_expr
  21:        0x10c976350 - rustc_hir_typeck[6e49abfc25ac21c6]::check::check_fn
  22:        0x10c95a90c - rustc_hir_typeck[6e49abfc25ac21c6]::typeck
  23:        0x10d7fa088 - rustc_query_impl[d631a5f5bfb0b403]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[d631a5f5bfb0b403]::query_impl::typeck::dynamic_query::{closure#2}::{closure#0}, rustc_middle[a784bbf211e613f7]::query::erase::Erased<[u8; 8usize]>>
  24:        0x10d840740 - <rustc_query_impl[d631a5f5bfb0b403]::query_impl::typeck::dynamic_query::{closure#2} as core[d272a70a7efa9590]::ops::function::FnOnce<(rustc_middle[a784bbf211e613f7]::ty::context::TyCtxt, rustc_span[bf3e504c8b161d65]::def_id::LocalDefId)>>::call_once
  25:        0x10d7a35cc - rustc_query_system[86320e985ad85d60]::query::plumbing::try_execute_query::<rustc_query_impl[d631a5f5bfb0b403]::DynamicConfig<rustc_query_system[86320e985ad85d60]::query::caches::VecCache<rustc_span[bf3e504c8b161d65]::def_id::LocalDefId, rustc_middle[a784bbf211e613f7]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[d631a5f5bfb0b403]::plumbing::QueryCtxt, true>
  26:        0x10d8d9c34 - rustc_query_impl[d631a5f5bfb0b403]::query_impl::typeck::get_query_incr::__rust_end_short_backtrace
  27:        0x10c7ec0ac - rustc_middle[a784bbf211e613f7]::query::plumbing::query_get_at::<rustc_query_system[86320e985ad85d60]::query::caches::VecCache<rustc_span[bf3e504c8b161d65]::def_id::LocalDefId, rustc_middle[a784bbf211e613f7]::query::erase::Erased<[u8; 8usize]>>>
  28:        0x10c7fca50 - rustc_hir_analysis[2bbc207b2e1cff80]::collect::type_of::opaque::find_opaque_ty_constraints_for_rpit
  29:        0x10d7f5788 - rustc_query_impl[d631a5f5bfb0b403]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[d631a5f5bfb0b403]::query_impl::type_of_opaque::dynamic_query::{closure#2}::{closure#0}, rustc_middle[a784bbf211e613f7]::query::erase::Erased<[u8; 8usize]>>
  30:        0x10d838b84 - <rustc_query_impl[d631a5f5bfb0b403]::query_impl::type_of_opaque::dynamic_query::{closure#2} as core[d272a70a7efa9590]::ops::function::FnOnce<(rustc_middle[a784bbf211e613f7]::ty::context::TyCtxt, rustc_span[bf3e504c8b161d65]::def_id::DefId)>>::call_once
  31:        0x10d70ee8c - rustc_query_system[86320e985ad85d60]::query::plumbing::try_execute_query::<rustc_query_impl[d631a5f5bfb0b403]::DynamicConfig<rustc_query_system[86320e985ad85d60]::query::caches::DefIdCache<rustc_middle[a784bbf211e613f7]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[d631a5f5bfb0b403]::plumbing::QueryCtxt, true>
  32:        0x10d901b24 - rustc_query_impl[d631a5f5bfb0b403]::query_impl::type_of_opaque::get_query_incr::__rust_end_short_backtrace
  33:        0x10c8092d0 - rustc_middle[a784bbf211e613f7]::query::plumbing::query_get_at::<rustc_query_system[86320e985ad85d60]::query::caches::DefIdCache<rustc_middle[a784bbf211e613f7]::query::erase::Erased<[u8; 8usize]>>>
  34:        0x10c825c78 - rustc_hir_analysis[2bbc207b2e1cff80]::collect::type_of::type_of
  35:        0x10d7fa108 - rustc_query_impl[d631a5f5bfb0b403]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[d631a5f5bfb0b403]::query_impl::type_of::dynamic_query::{closure#2}::{closure#0}, rustc_middle[a784bbf211e613f7]::query::erase::Erased<[u8; 8usize]>>
  36:        0x10d840ae4 - <rustc_query_impl[d631a5f5bfb0b403]::query_impl::type_of::dynamic_query::{closure#2} as core[d272a70a7efa9590]::ops::function::FnOnce<(rustc_middle[a784bbf211e613f7]::ty::context::TyCtxt, rustc_span[bf3e504c8b161d65]::def_id::DefId)>>::call_once
  37:        0x10d70ee8c - rustc_query_system[86320e985ad85d60]::query::plumbing::try_execute_query::<rustc_query_impl[d631a5f5bfb0b403]::DynamicConfig<rustc_query_system[86320e985ad85d60]::query::caches::DefIdCache<rustc_middle[a784bbf211e613f7]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[d631a5f5bfb0b403]::plumbing::QueryCtxt, true>
  38:        0x10d901998 - rustc_query_impl[d631a5f5bfb0b403]::query_impl::type_of::get_query_incr::__rust_end_short_backtrace
  39:        0x10c710188 - rustc_middle[a784bbf211e613f7]::query::plumbing::query_get_at::<rustc_query_system[86320e985ad85d60]::query::caches::DefIdCache<rustc_middle[a784bbf211e613f7]::query::erase::Erased<[u8; 8usize]>>>
  40:        0x10c71f2e8 - rustc_hir_analysis[2bbc207b2e1cff80]::check::check::check_item_type
  41:        0x10c6eb8b8 - rustc_hir_analysis[2bbc207b2e1cff80]::check::wfcheck::check_well_formed
  42:        0x10d7f68d4 - rustc_query_impl[d631a5f5bfb0b403]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[d631a5f5bfb0b403]::query_impl::check_well_formed::dynamic_query::{closure#2}::{closure#0}, rustc_middle[a784bbf211e613f7]::query::erase::Erased<[u8; 1usize]>>
  43:        0x10d99e230 - <rustc_query_impl[d631a5f5bfb0b403]::query_impl::check_well_formed::dynamic_query::{closure#2} as core[d272a70a7efa9590]::ops::function::FnOnce<(rustc_middle[a784bbf211e613f7]::ty::context::TyCtxt, rustc_hir[45f3ae60b02dfc83]::hir_id::OwnerId)>>::call_once
  44:        0x10d792930 - rustc_query_system[86320e985ad85d60]::query::plumbing::try_execute_query::<rustc_query_impl[d631a5f5bfb0b403]::DynamicConfig<rustc_query_system[86320e985ad85d60]::query::caches::VecCache<rustc_hir[45f3ae60b02dfc83]::hir_id::OwnerId, rustc_middle[a784bbf211e613f7]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[d631a5f5bfb0b403]::plumbing::QueryCtxt, true>
  45:        0x10d6f36b0 - rustc_query_system[86320e985ad85d60]::query::plumbing::force_query::<rustc_query_impl[d631a5f5bfb0b403]::DynamicConfig<rustc_query_system[86320e985ad85d60]::query::caches::VecCache<rustc_hir[45f3ae60b02dfc83]::hir_id::OwnerId, rustc_middle[a784bbf211e613f7]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[d631a5f5bfb0b403]::plumbing::QueryCtxt>
  46:        0x10d7bf454 - <rustc_query_impl[d631a5f5bfb0b403]::plumbing::query_callback<rustc_query_impl[d631a5f5bfb0b403]::query_impl::check_well_formed::QueryType>::{closure#0} as core[d272a70a7efa9590]::ops::function::FnOnce<(rustc_middle[a784bbf211e613f7]::ty::context::TyCtxt, rustc_query_system[86320e985ad85d60]::dep_graph::dep_node::DepNode)>>::call_once
  47:        0x10d90c364 - <rustc_query_system[86320e985ad85d60]::dep_graph::graph::DepGraphData<rustc_middle[a784bbf211e613f7]::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl[d631a5f5bfb0b403]::plumbing::QueryCtxt>
  48:        0x10d90c130 - <rustc_query_system[86320e985ad85d60]::dep_graph::graph::DepGraphData<rustc_middle[a784bbf211e613f7]::dep_graph::DepsType>>::try_mark_green::<rustc_query_impl[d631a5f5bfb0b403]::plumbing::QueryCtxt>
  49:        0x10d6f6a24 - rustc_query_system[86320e985ad85d60]::query::plumbing::ensure_must_run::<rustc_query_impl[d631a5f5bfb0b403]::DynamicConfig<rustc_query_system[86320e985ad85d60]::query::caches::DefaultCache<rustc_span[bf3e504c8b161d65]::def_id::LocalModDefId, rustc_middle[a784bbf211e613f7]::query::erase::Erased<[u8; 0usize]>>, false, false, false>, rustc_query_impl[d631a5f5bfb0b403]::plumbing::QueryCtxt>
  50:        0x10d926658 - rustc_query_impl[d631a5f5bfb0b403]::query_impl::check_mod_type_wf::get_query_incr::__rust_end_short_backtrace
  51:        0x10c745aac - <rustc_data_structures[f340f78e6b6d7492]::sync::parallel::ParallelGuard>::run::<(), rustc_data_structures[f340f78e6b6d7492]::sync::parallel::enabled::par_for_each_in<&rustc_hir[45f3ae60b02dfc83]::hir_id::OwnerId, &[rustc_hir[45f3ae60b02dfc83]::hir_id::OwnerId], <rustc_middle[a784bbf211e613f7]::hir::map::Map>::par_for_each_module<rustc_hir_analysis[2bbc207b2e1cff80]::check_crate::{closure#1}::{closure#0}>::{closure#0}>::{closure#0}::{closure#0}::{closure#0}>
  52:        0x10c7e1414 - <rustc_session[21d9e6928a85e3b0]::session::Session>::time::<(), rustc_hir_analysis[2bbc207b2e1cff80]::check_crate::{closure#1}>
  53:        0x10c7b3994 - rustc_hir_analysis[2bbc207b2e1cff80]::check_crate
  54:        0x10cc21788 - rustc_interface[3a0f763c368c80a]::passes::analysis
  55:        0x10d7fa128 - rustc_query_impl[d631a5f5bfb0b403]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[d631a5f5bfb0b403]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[a784bbf211e613f7]::query::erase::Erased<[u8; 1usize]>>
  56:        0x10d99f674 - <rustc_query_impl[d631a5f5bfb0b403]::query_impl::analysis::dynamic_query::{closure#2} as core[d272a70a7efa9590]::ops::function::FnOnce<(rustc_middle[a784bbf211e613f7]::ty::context::TyCtxt, ())>>::call_once
  57:        0x10d717d28 - rustc_query_system[86320e985ad85d60]::query::plumbing::try_execute_query::<rustc_query_impl[d631a5f5bfb0b403]::DynamicConfig<rustc_query_system[86320e985ad85d60]::query::caches::SingleCache<rustc_middle[a784bbf211e613f7]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[d631a5f5bfb0b403]::plumbing::QueryCtxt, true>
  58:        0x10d9a22cc - rustc_query_impl[d631a5f5bfb0b403]::query_impl::analysis::get_query_incr::__rust_end_short_backtrace
  59:        0x10c4a3868 - <rustc_middle[a784bbf211e613f7]::ty::context::GlobalCtxt>::enter::<rustc_driver_impl[7a60ac4377fdb13f]::run_compiler::{closure#0}::{closure#1}::{closure#3}, core[d272a70a7efa9590]::result::Result<(), rustc_span[bf3e504c8b161d65]::ErrorGuaranteed>>
  60:        0x10c44e000 - <rustc_interface[3a0f763c368c80a]::interface::Compiler>::enter::<rustc_driver_impl[7a60ac4377fdb13f]::run_compiler::{closure#0}::{closure#1}, core[d272a70a7efa9590]::result::Result<core[d272a70a7efa9590]::option::Option<rustc_interface[3a0f763c368c80a]::queries::Linker>, rustc_span[bf3e504c8b161d65]::ErrorGuaranteed>>
  61:        0x10c4a2178 - <scoped_tls[c3d37789c751d33]::ScopedKey<rustc_span[bf3e504c8b161d65]::SessionGlobals>>::set::<rustc_interface[3a0f763c368c80a]::util::run_in_thread_with_globals<rustc_interface[3a0f763c368c80a]::util::run_in_thread_pool_with_globals<rustc_interface[3a0f763c368c80a]::interface::run_compiler<core[d272a70a7efa9590]::result::Result<(), rustc_span[bf3e504c8b161d65]::ErrorGuaranteed>, rustc_driver_impl[7a60ac4377fdb13f]::run_compiler::{closure#0}>::{closure#1}, core[d272a70a7efa9590]::result::Result<(), rustc_span[bf3e504c8b161d65]::ErrorGuaranteed>>::{closure#0}, core[d272a70a7efa9590]::result::Result<(), rustc_span[bf3e504c8b161d65]::ErrorGuaranteed>>::{closure#0}::{closure#0}::{closure#0}, core[d272a70a7efa9590]::result::Result<(), rustc_span[bf3e504c8b161d65]::ErrorGuaranteed>>
  62:        0x10c4806b8 - rustc_span[bf3e504c8b161d65]::create_session_globals_then::<core[d272a70a7efa9590]::result::Result<(), rustc_span[bf3e504c8b161d65]::ErrorGuaranteed>, rustc_interface[3a0f763c368c80a]::util::run_in_thread_with_globals<rustc_interface[3a0f763c368c80a]::util::run_in_thread_pool_with_globals<rustc_interface[3a0f763c368c80a]::interface::run_compiler<core[d272a70a7efa9590]::result::Result<(), rustc_span[bf3e504c8b161d65]::ErrorGuaranteed>, rustc_driver_impl[7a60ac4377fdb13f]::run_compiler::{closure#0}>::{closure#1}, core[d272a70a7efa9590]::result::Result<(), rustc_span[bf3e504c8b161d65]::ErrorGuaranteed>>::{closure#0}, core[d272a70a7efa9590]::result::Result<(), rustc_span[bf3e504c8b161d65]::ErrorGuaranteed>>::{closure#0}::{closure#0}::{closure#0}>
  63:        0x10c4aaca4 - std[78bc1753afde8562]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[3a0f763c368c80a]::util::run_in_thread_with_globals<rustc_interface[3a0f763c368c80a]::util::run_in_thread_pool_with_globals<rustc_interface[3a0f763c368c80a]::interface::run_compiler<core[d272a70a7efa9590]::result::Result<(), rustc_span[bf3e504c8b161d65]::ErrorGuaranteed>, rustc_driver_impl[7a60ac4377fdb13f]::run_compiler::{closure#0}>::{closure#1}, core[d272a70a7efa9590]::result::Result<(), rustc_span[bf3e504c8b161d65]::ErrorGuaranteed>>::{closure#0}, core[d272a70a7efa9590]::result::Result<(), rustc_span[bf3e504c8b161d65]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[d272a70a7efa9590]::result::Result<(), rustc_span[bf3e504c8b161d65]::ErrorGuaranteed>>
  64:        0x10c4ab334 - <<std[78bc1753afde8562]::thread::Builder>::spawn_unchecked_<rustc_interface[3a0f763c368c80a]::util::run_in_thread_with_globals<rustc_interface[3a0f763c368c80a]::util::run_in_thread_pool_with_globals<rustc_interface[3a0f763c368c80a]::interface::run_compiler<core[d272a70a7efa9590]::result::Result<(), rustc_span[bf3e504c8b161d65]::ErrorGuaranteed>, rustc_driver_impl[7a60ac4377fdb13f]::run_compiler::{closure#0}>::{closure#1}, core[d272a70a7efa9590]::result::Result<(), rustc_span[bf3e504c8b161d65]::ErrorGuaranteed>>::{closure#0}, core[d272a70a7efa9590]::result::Result<(), rustc_span[bf3e504c8b161d65]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[d272a70a7efa9590]::result::Result<(), rustc_span[bf3e504c8b161d65]::ErrorGuaranteed>>::{closure#2} as core[d272a70a7efa9590]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  65:        0x102c06708 - std::sys::pal::unix::thread::Thread::new::thread_start::h34a6ef4a24114659
  66:        0x186c2bfa8 - __pthread_joiner_wake


rustc version: 1.80.0-nightly (84b40fc90 2024-05-27)
platform: aarch64-apple-darwin

@jieyouxu jieyouxu added S-needs-repro Status: This issue has no reproduction and needs a reproduction to make progress. and removed needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. labels Jun 4, 2024
@jflatow
Copy link
Author

jflatow commented Jun 5, 2024

Hitting these issues pretty constantly on this project, and actually, now seeing it happen that compilation is failing with some bogus error if I modify a macro, until I touch the test file which is using the macro, after which it compiles fine. Note the error in these cases is not a panic like above (which are still happening a lot), but a made-up complaint about the source code, which goes away after doing nothing but touching the test file. This makes me think it's possibly macros 2.0 related (which I am using)

@Noratrieb Noratrieb added A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..) A-macros-2.0 Area: Declarative macros 2.0 (#39412) F-decl_macro `#![feature(decl_macro)]` labels Jun 5, 2024
@Noratrieb
Copy link
Member

that sounds likely. I recommend you use normal macro rules instead and check whether that helps.

@jflatow
Copy link
Author

jflatow commented Jun 6, 2024

I'll try converting when I have a chance, but assuming that is the case, linking to #39412 as it is still very buggy (happy to vet with this apparently devastating test case if/when it is believed to be more stable)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-incr-comp Area: Incremental compilation A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..) A-macros-2.0 Area: Declarative macros 2.0 (#39412) C-bug Category: This is a bug. F-decl_macro `#![feature(decl_macro)]` I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ S-needs-repro Status: This issue has no reproduction and needs a reproduction to make progress. 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

5 participants