Skip to content

ICE during incremental test recompilation #141534

@mumbleskates

Description

@mumbleskates

Code

(lots)

Meta

rustc --version --verbose:

rustc 1.89.0-nightly (5e16c6620 2025-05-24)
binary: rustc
commit-hash: 5e16c662062fd6dee91f0fe2a1580483488d80cf
commit-date: 2025-05-24
host: x86_64-unknown-linux-gnu
release: 1.89.0-nightly
LLVM version: 20.1.5

Error output

error: internal compiler error: compiler/rustc_middle/src/ty/instance.rs:633:21: failed to resolve instance for <() as DistinguishedBorrowDecoder<'_, GeneralGeneric<0>, Option<Box<test_messages::TestDistinguished>>>>::borrow_decode_distinguished
   --> fuzz/common/src/test_messages.rs:520:43
    |
520 |     #[derive(Clone, Debug, PartialEq, Eq, Message)]
    |                                           ^^^^^^^
    |
    = note: this error: internal compiler error originates in the derive macro `Message` (in Nightly builds, run with -Z macro-backtrace for more info)
Backtrace

thread 'rustc' panicked at compiler/rustc_middle/src/ty/instance.rs:633:21:
Box<dyn Any>
stack backtrace:
   0:     0x7cac905554a5 - std::backtrace::Backtrace::create::h6e0b74fca65b6881
   1:     0x7cac8e95c7a5 - std::backtrace::Backtrace::force_capture::h90fc66630024cad9
   2:     0x7cac8d99fa81 - std[a256a5eabf3e1cec]::panicking::update_hook::<alloc[793c3cb6aa8d80c4]::boxed::Box<rustc_driver_impl[d463d84a4fb91b86]::install_ice_hook::{closure#1}>>::{closure#0}
   3:     0x7cac8e9766d3 - std::panicking::rust_panic_with_hook::ha6427448e83ac9ba
   4:     0x7cac8d9db141 - std[a256a5eabf3e1cec]::panicking::begin_panic::<rustc_errors[bce9fff85985609]::ExplicitBug>::{closure#0}
   5:     0x7cac8d9cf176 - std[a256a5eabf3e1cec]::sys::backtrace::__rust_end_short_backtrace::<std[a256a5eabf3e1cec]::panicking::begin_panic<rustc_errors[bce9fff85985609]::ExplicitBug>::{closure#0}, !>
   6:     0x7cac8d9ceffb - std[a256a5eabf3e1cec]::panicking::begin_panic::<rustc_errors[bce9fff85985609]::ExplicitBug>
   7:     0x7cac8d9e58b1 - <rustc_errors[bce9fff85985609]::diagnostic::BugAbort as rustc_errors[bce9fff85985609]::diagnostic::EmissionGuarantee>::emit_producing_guarantee
   8:     0x7cac8dfb433c - <rustc_errors[bce9fff85985609]::DiagCtxtHandle>::span_bug::<rustc_span[8408a6129dc91123]::span_encoding::Span, alloc[793c3cb6aa8d80c4]::string::String>
   9:     0x7cac8e04fdd7 - rustc_middle[f2a97f14af05c6cc]::util::bug::opt_span_bug_fmt::<rustc_span[8408a6129dc91123]::span_encoding::Span>::{closure#0}
  10:     0x7cac8e02a1da - rustc_middle[f2a97f14af05c6cc]::ty::context::tls::with_opt::<rustc_middle[f2a97f14af05c6cc]::util::bug::opt_span_bug_fmt<rustc_span[8408a6129dc91123]::span_encoding::Span>::{closure#0}, !>::{closure#0}
  11:     0x7cac8e02a04b - rustc_middle[f2a97f14af05c6cc]::ty::context::tls::with_context_opt::<rustc_middle[f2a97f14af05c6cc]::ty::context::tls::with_opt<rustc_middle[f2a97f14af05c6cc]::util::bug::opt_span_bug_fmt<rustc_span[8408a6129dc91123]::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
  12:     0x7cac8caf9787 - rustc_middle[f2a97f14af05c6cc]::util::bug::span_bug_fmt::<rustc_span[8408a6129dc91123]::span_encoding::Span>
  13:     0x7cac8f5e3a1a - <rustc_middle[f2a97f14af05c6cc]::ty::instance::Instance>::expect_resolve
  14:     0x7cac8bde667a - rustc_monomorphize[325879acd6cd2e9b]::collector::items_of_instance
  15:     0x7cac8f0163b2 - rustc_query_impl[501993b47488a72e]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[501993b47488a72e]::query_impl::items_of_instance::dynamic_query::{closure#2}::{closure#0}, rustc_middle[f2a97f14af05c6cc]::query::erase::Erased<[u8; 32usize]>>
  16:     0x7cac8fb2d004 - rustc_query_system[bf8363d990f85ee2]::query::plumbing::try_execute_query::<rustc_query_impl[501993b47488a72e]::DynamicConfig<rustc_query_system[bf8363d990f85ee2]::query::caches::DefaultCache<(rustc_middle[f2a97f14af05c6cc]::ty::instance::Instance, rustc_middle[f2a97f14af05c6cc]::mir::mono::CollectionMode), rustc_middle[f2a97f14af05c6cc]::query::erase::Erased<[u8; 32usize]>>, false, false, false>, rustc_query_impl[501993b47488a72e]::plumbing::QueryCtxt, true>
  17:     0x7cac8fb2c1b9 - rustc_query_impl[501993b47488a72e]::query_impl::items_of_instance::get_query_incr::__rust_end_short_backtrace
  18:     0x7cac8fb27c31 - rustc_monomorphize[325879acd6cd2e9b]::collector::collect_items_rec::{closure#0}
  19:     0x7cac8fb28967 - rustc_monomorphize[325879acd6cd2e9b]::collector::collect_items_rec
  20:     0x7cac8fb2954d - rustc_monomorphize[325879acd6cd2e9b]::collector::collect_items_rec
  21:     0x7cac8fb2954d - rustc_monomorphize[325879acd6cd2e9b]::collector::collect_items_rec
  22:     0x7cac8fb2954d - rustc_monomorphize[325879acd6cd2e9b]::collector::collect_items_rec
  23:     0x7cac8fb2954d - rustc_monomorphize[325879acd6cd2e9b]::collector::collect_items_rec
  24:     0x7cac8fb2954d - rustc_monomorphize[325879acd6cd2e9b]::collector::collect_items_rec
  25:     0x7cac8f61c721 - rustc_monomorphize[325879acd6cd2e9b]::collector::collect_crate_mono_items::{closure#1}::{closure#0}
  26:     0x7cac8f78a8f2 - rustc_monomorphize[325879acd6cd2e9b]::partitioning::collect_and_partition_mono_items
  27:     0x7cac90265bd6 - rustc_query_impl[501993b47488a72e]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[501993b47488a72e]::query_impl::collect_and_partition_mono_items::dynamic_query::{closure#2}::{closure#0}, rustc_middle[f2a97f14af05c6cc]::query::erase::Erased<[u8; 40usize]>>
  28:     0x7cac90265bb9 - <rustc_query_impl[501993b47488a72e]::query_impl::collect_and_partition_mono_items::dynamic_query::{closure#2} as core[5f4b3e22d16e4fc2]::ops::function::FnOnce<(rustc_middle[f2a97f14af05c6cc]::ty::context::TyCtxt, ())>>::call_once
  29:     0x7cac90264709 - rustc_query_system[bf8363d990f85ee2]::query::plumbing::try_execute_query::<rustc_query_impl[501993b47488a72e]::DynamicConfig<rustc_query_system[bf8363d990f85ee2]::query::caches::SingleCache<rustc_middle[f2a97f14af05c6cc]::query::erase::Erased<[u8; 40usize]>>, false, false, false>, rustc_query_impl[501993b47488a72e]::plumbing::QueryCtxt, true>
  30:     0x7cac9026435e - <rustc_query_impl[501993b47488a72e]::plumbing::query_callback<rustc_query_impl[501993b47488a72e]::query_impl::collect_and_partition_mono_items::QueryType>::{closure#0} as core[5f4b3e22d16e4fc2]::ops::function::FnOnce<(rustc_middle[f2a97f14af05c6cc]::ty::context::TyCtxt, rustc_query_system[bf8363d990f85ee2]::dep_graph::dep_node::DepNode, rustc_query_system[bf8363d990f85ee2]::dep_graph::serialized::SerializedDepNodeIndex)>>::call_once
  31:     0x7cac8f02126b - <rustc_query_system[bf8363d990f85ee2]::dep_graph::graph::DepGraphData<rustc_middle[f2a97f14af05c6cc]::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl[501993b47488a72e]::plumbing::QueryCtxt>
  32:     0x7cac8f99dd62 - <rustc_query_system[bf8363d990f85ee2]::dep_graph::graph::DepGraphData<rustc_middle[f2a97f14af05c6cc]::dep_graph::DepsType>>::try_mark_green::<rustc_query_impl[501993b47488a72e]::plumbing::QueryCtxt>
  33:     0x7cac8fe309ef - rustc_query_system[bf8363d990f85ee2]::query::plumbing::try_execute_query::<rustc_query_impl[501993b47488a72e]::DynamicConfig<rustc_data_structures[80a716b1d328ff09]::vec_cache::VecCache<rustc_span[8408a6129dc91123]::def_id::CrateNum, rustc_middle[f2a97f14af05c6cc]::query::erase::Erased<[u8; 16usize]>, rustc_query_system[bf8363d990f85ee2]::dep_graph::graph::DepNodeIndex>, false, false, false>, rustc_query_impl[501993b47488a72e]::plumbing::QueryCtxt, true>
  34:     0x7cac8fe30316 - rustc_query_impl[501993b47488a72e]::query_impl::exported_symbols::get_query_incr::__rust_end_short_backtrace
  35:     0x7cac8f7bf40d - <rustc_metadata[586799791d02f671]::rmeta::encoder::EncodeContext>::encode_crate_root
  36:     0x7cac8fe9f988 - rustc_metadata[586799791d02f671]::rmeta::encoder::encode_metadata
  37:     0x7cac8fdceb73 - rustc_metadata[586799791d02f671]::fs::encode_and_write_metadata
  38:     0x7cac90167044 - <rustc_interface[271bc9beef838f9c]::queries::Linker>::codegen_and_build_linker
  39:     0x7cac90164cb8 - rustc_interface[271bc9beef838f9c]::passes::create_and_enter_global_ctxt::<core[5f4b3e22d16e4fc2]::option::Option<rustc_interface[271bc9beef838f9c]::queries::Linker>, rustc_driver_impl[d463d84a4fb91b86]::run_compiler::{closure#0}::{closure#2}>::{closure#2}::{closure#0}
  40:     0x7cac900a64cf - rustc_interface[271bc9beef838f9c]::interface::run_compiler::<(), rustc_driver_impl[d463d84a4fb91b86]::run_compiler::{closure#0}>::{closure#1}
  41:     0x7cac90061346 - std[a256a5eabf3e1cec]::sys::backtrace::__rust_begin_short_backtrace::<rustc_interface[271bc9beef838f9c]::util::run_in_thread_with_globals<rustc_interface[271bc9beef838f9c]::util::run_in_thread_pool_with_globals<rustc_interface[271bc9beef838f9c]::interface::run_compiler<(), rustc_driver_impl[d463d84a4fb91b86]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>
  42:     0x7cac90060feb - <<std[a256a5eabf3e1cec]::thread::Builder>::spawn_unchecked_<rustc_interface[271bc9beef838f9c]::util::run_in_thread_with_globals<rustc_interface[271bc9beef838f9c]::util::run_in_thread_pool_with_globals<rustc_interface[271bc9beef838f9c]::interface::run_compiler<(), rustc_driver_impl[d463d84a4fb91b86]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core[5f4b3e22d16e4fc2]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  43:     0x7cac9006233d - std::sys::pal::unix::thread::Thread::new::thread_start::hc104b4a4d7e82f43
  44:     0x7cac89ca2ef1 - <unknown>
  45:     0x7cac89d3445c - <unknown>
  46:                0x0 - <unknown>


rustc version: 1.89.0-nightly (5e16c6620 2025-05-24)
platform: x86_64-unknown-linux-gnu

query stack during panic:
#0 [items_of_instance] collecting items used by `test_messages::_::<impl at fuzz/common/src/test_messages.rs:13:35: 13:42>::raw_decode_field::<&[u8]>`
#1 [collect_and_partition_mono_items] collect_and_partition_mono_items
#2 [exported_symbols] collecting exported symbols for crate `0`
end of query stack
thread 'rustc' panicked at compiler/rustc_middle/src/ty/instance.rs:633:21:
Box<dyn Any>
stack backtrace:
   0:     0x7cac905554a5 - std::backtrace::Backtrace::create::h6e0b74fca65b6881
   1:     0x7cac8e95c7a5 - std::backtrace::Backtrace::force_capture::h90fc66630024cad9
   2:     0x7cac8d99fa81 - std[a256a5eabf3e1cec]::panicking::update_hook::<alloc[793c3cb6aa8d80c4]::boxed::Box<rustc_driver_impl[d463d84a4fb91b86]::install_ice_hook::{closure#1}>>::{closure#0}
   3:     0x7cac8e9766d3 - std::panicking::rust_panic_with_hook::ha6427448e83ac9ba
   4:     0x7cac8d9db141 - std[a256a5eabf3e1cec]::panicking::begin_panic::<rustc_errors[bce9fff85985609]::ExplicitBug>::{closure#0}
   5:     0x7cac8d9cf176 - std[a256a5eabf3e1cec]::sys::backtrace::__rust_end_short_backtrace::<std[a256a5eabf3e1cec]::panicking::begin_panic<rustc_errors[bce9fff85985609]::ExplicitBug>::{closure#0}, !>
   6:     0x7cac8d9ceffb - std[a256a5eabf3e1cec]::panicking::begin_panic::<rustc_errors[bce9fff85985609]::ExplicitBug>
   7:     0x7cac8d9e58b1 - <rustc_errors[bce9fff85985609]::diagnostic::BugAbort as rustc_errors[bce9fff85985609]::diagnostic::EmissionGuarantee>::emit_producing_guarantee
   8:     0x7cac8dfb433c - <rustc_errors[bce9fff85985609]::DiagCtxtHandle>::span_bug::<rustc_span[8408a6129dc91123]::span_encoding::Span, alloc[793c3cb6aa8d80c4]::string::String>
   9:     0x7cac8e04fdd7 - rustc_middle[f2a97f14af05c6cc]::util::bug::opt_span_bug_fmt::<rustc_span[8408a6129dc91123]::span_encoding::Span>::{closure#0}
  10:     0x7cac8e02a1da - rustc_middle[f2a97f14af05c6cc]::ty::context::tls::with_opt::<rustc_middle[f2a97f14af05c6cc]::util::bug::opt_span_bug_fmt<rustc_span[8408a6129dc91123]::span_encoding::Span>::{closure#0}, !>::{closure#0}
  11:     0x7cac8e02a04b - rustc_middle[f2a97f14af05c6cc]::ty::context::tls::with_context_opt::<rustc_middle[f2a97f14af05c6cc]::ty::context::tls::with_opt<rustc_middle[f2a97f14af05c6cc]::util::bug::opt_span_bug_fmt<rustc_span[8408a6129dc91123]::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
  12:     0x7cac8caf9787 - rustc_middle[f2a97f14af05c6cc]::util::bug::span_bug_fmt::<rustc_span[8408a6129dc91123]::span_encoding::Span>
  13:     0x7cac8f5e3a1a - <rustc_middle[f2a97f14af05c6cc]::ty::instance::Instance>::expect_resolve
  14:     0x7cac8bde667a - rustc_monomorphize[325879acd6cd2e9b]::collector::items_of_instance
  15:     0x7cac8f0163b2 - rustc_query_impl[501993b47488a72e]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[501993b47488a72e]::query_impl::items_of_instance::dynamic_query::{closure#2}::{closure#0}, rustc_middle[f2a97f14af05c6cc]::query::erase::Erased<[u8; 32usize]>>
  16:     0x7cac8fb2d004 - rustc_query_system[bf8363d990f85ee2]::query::plumbing::try_execute_query::<rustc_query_impl[501993b47488a72e]::DynamicConfig<rustc_query_system[bf8363d990f85ee2]::query::caches::DefaultCache<(rustc_middle[f2a97f14af05c6cc]::ty::instance::Instance, rustc_middle[f2a97f14af05c6cc]::mir::mono::CollectionMode), rustc_middle[f2a97f14af05c6cc]::query::erase::Erased<[u8; 32usize]>>, false, false, false>, rustc_query_impl[501993b47488a72e]::plumbing::QueryCtxt, true>
  17:     0x7cac8fb2c1b9 - rustc_query_impl[501993b47488a72e]::query_impl::items_of_instance::get_query_incr::__rust_end_short_backtrace
  18:     0x7cac8fb27c31 - rustc_monomorphize[325879acd6cd2e9b]::collector::collect_items_rec::{closure#0}
  19:     0x7cac8fb28967 - rustc_monomorphize[325879acd6cd2e9b]::collector::collect_items_rec
  20:     0x7cac8fb2954d - rustc_monomorphize[325879acd6cd2e9b]::collector::collect_items_rec
  21:     0x7cac8fb2954d - rustc_monomorphize[325879acd6cd2e9b]::collector::collect_items_rec
  22:     0x7cac8fb2954d - rustc_monomorphize[325879acd6cd2e9b]::collector::collect_items_rec
  23:     0x7cac8fb2954d - rustc_monomorphize[325879acd6cd2e9b]::collector::collect_items_rec
  24:     0x7cac8fb2954d - rustc_monomorphize[325879acd6cd2e9b]::collector::collect_items_rec
  25:     0x7cac8fb2954d - rustc_monomorphize[325879acd6cd2e9b]::collector::collect_items_rec
  26:     0x7cac8f61c721 - rustc_monomorphize[325879acd6cd2e9b]::collector::collect_crate_mono_items::{closure#1}::{closure#0}
  27:     0x7cac8f78a8f2 - rustc_monomorphize[325879acd6cd2e9b]::partitioning::collect_and_partition_mono_items
  28:     0x7cac90265bd6 - rustc_query_impl[501993b47488a72e]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[501993b47488a72e]::query_impl::collect_and_partition_mono_items::dynamic_query::{closure#2}::{closure#0}, rustc_middle[f2a97f14af05c6cc]::query::erase::Erased<[u8; 40usize]>>
  29:     0x7cac90265bb9 - <rustc_query_impl[501993b47488a72e]::query_impl::collect_and_partition_mono_items::dynamic_query::{closure#2} as core[5f4b3e22d16e4fc2]::ops::function::FnOnce<(rustc_middle[f2a97f14af05c6cc]::ty::context::TyCtxt, ())>>::call_once
  30:     0x7cac90264709 - rustc_query_system[bf8363d990f85ee2]::query::plumbing::try_execute_query::<rustc_query_impl[501993b47488a72e]::DynamicConfig<rustc_query_system[bf8363d990f85ee2]::query::caches::SingleCache<rustc_middle[f2a97f14af05c6cc]::query::erase::Erased<[u8; 40usize]>>, false, false, false>, rustc_query_impl[501993b47488a72e]::plumbing::QueryCtxt, true>
  31:     0x7cac9026435e - <rustc_query_impl[501993b47488a72e]::plumbing::query_callback<rustc_query_impl[501993b47488a72e]::query_impl::collect_and_partition_mono_items::QueryType>::{closure#0} as core[5f4b3e22d16e4fc2]::ops::function::FnOnce<(rustc_middle[f2a97f14af05c6cc]::ty::context::TyCtxt, rustc_query_system[bf8363d990f85ee2]::dep_graph::dep_node::DepNode, rustc_query_system[bf8363d990f85ee2]::dep_graph::serialized::SerializedDepNodeIndex)>>::call_once
  32:     0x7cac8f02126b - <rustc_query_system[bf8363d990f85ee2]::dep_graph::graph::DepGraphData<rustc_middle[f2a97f14af05c6cc]::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl[501993b47488a72e]::plumbing::QueryCtxt>
  33:     0x7cac8f99dd62 - <rustc_query_system[bf8363d990f85ee2]::dep_graph::graph::DepGraphData<rustc_middle[f2a97f14af05c6cc]::dep_graph::DepsType>>::try_mark_green::<rustc_query_impl[501993b47488a72e]::plumbing::QueryCtxt>
  34:     0x7cac8fe309ef - rustc_query_system[bf8363d990f85ee2]::query::plumbing::try_execute_query::<rustc_query_impl[501993b47488a72e]::DynamicConfig<rustc_data_structures[80a716b1d328ff09]::vec_cache::VecCache<rustc_span[8408a6129dc91123]::def_id::CrateNum, rustc_middle[f2a97f14af05c6cc]::query::erase::Erased<[u8; 16usize]>, rustc_query_system[bf8363d990f85ee2]::dep_graph::graph::DepNodeIndex>, false, false, false>, rustc_query_impl[501993b47488a72e]::plumbing::QueryCtxt, true>
  35:     0x7cac8fe30316 - rustc_query_impl[501993b47488a72e]::query_impl::exported_symbols::get_query_incr::__rust_end_short_backtrace
  36:     0x7cac8f7bf40d - <rustc_metadata[586799791d02f671]::rmeta::encoder::EncodeContext>::encode_crate_root
  37:     0x7cac8fe9f988 - rustc_metadata[586799791d02f671]::rmeta::encoder::encode_metadata
  38:     0x7cac8fdceb73 - rustc_metadata[586799791d02f671]::fs::encode_and_write_metadata
  39:     0x7cac90167044 - <rustc_interface[271bc9beef838f9c]::queries::Linker>::codegen_and_build_linker
  40:     0x7cac90164cb8 - rustc_interface[271bc9beef838f9c]::passes::create_and_enter_global_ctxt::<core[5f4b3e22d16e4fc2]::option::Option<rustc_interface[271bc9beef838f9c]::queries::Linker>, rustc_driver_impl[d463d84a4fb91b86]::run_compiler::{closure#0}::{closure#2}>::{closure#2}::{closure#0}
  41:     0x7cac900a64cf - rustc_interface[271bc9beef838f9c]::interface::run_compiler::<(), rustc_driver_impl[d463d84a4fb91b86]::run_compiler::{closure#0}>::{closure#1}
  42:     0x7cac90061346 - std[a256a5eabf3e1cec]::sys::backtrace::__rust_begin_short_backtrace::<rustc_interface[271bc9beef838f9c]::util::run_in_thread_with_globals<rustc_interface[271bc9beef838f9c]::util::run_in_thread_pool_with_globals<rustc_interface[271bc9beef838f9c]::interface::run_compiler<(), rustc_driver_impl[d463d84a4fb91b86]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>
  43:     0x7cac90060feb - <<std[a256a5eabf3e1cec]::thread::Builder>::spawn_unchecked_<rustc_interface[271bc9beef838f9c]::util::run_in_thread_with_globals<rustc_interface[271bc9beef838f9c]::util::run_in_thread_pool_with_globals<rustc_interface[271bc9beef838f9c]::interface::run_compiler<(), rustc_driver_impl[d463d84a4fb91b86]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core[5f4b3e22d16e4fc2]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  44:     0x7cac9006233d - std::sys::pal::unix::thread::Thread::new::thread_start::hc104b4a4d7e82f43
  45:     0x7cac89ca2ef1 - <unknown>
  46:     0x7cac89d3445c - <unknown>
  47:                0x0 - <unknown>


query stack during panic:
#0 [items_of_instance] collecting items used by `test_messages::test_message::_::<impl at fuzz/common/src/test_messages.rs:306:39: 306:46>::raw_borrow_decode_field`
#1 [collect_and_partition_mono_items] collect_and_partition_mono_items
#2 [exported_symbols] collecting exported symbols for crate `0`
end of query stack
thread 'rustc' panicked at compiler/rustc_middle/src/ty/instance.rs:633:21:
Box<dyn Any>
stack backtrace:
   0:     0x7cac905554a5 - std::backtrace::Backtrace::create::h6e0b74fca65b6881
   1:     0x7cac8e95c7a5 - std::backtrace::Backtrace::force_capture::h90fc66630024cad9
   2:     0x7cac8d99fa81 - std[a256a5eabf3e1cec]::panicking::update_hook::<alloc[793c3cb6aa8d80c4]::boxed::Box<rustc_driver_impl[d463d84a4fb91b86]::install_ice_hook::{closure#1}>>::{closure#0}
   3:     0x7cac8e9766d3 - std::panicking::rust_panic_with_hook::ha6427448e83ac9ba
   4:     0x7cac8d9db141 - std[a256a5eabf3e1cec]::panicking::begin_panic::<rustc_errors[bce9fff85985609]::ExplicitBug>::{closure#0}
   5:     0x7cac8d9cf176 - std[a256a5eabf3e1cec]::sys::backtrace::__rust_end_short_backtrace::<std[a256a5eabf3e1cec]::panicking::begin_panic<rustc_errors[bce9fff85985609]::ExplicitBug>::{closure#0}, !>
   6:     0x7cac8d9ceffb - std[a256a5eabf3e1cec]::panicking::begin_panic::<rustc_errors[bce9fff85985609]::ExplicitBug>
   7:     0x7cac8d9e58b1 - <rustc_errors[bce9fff85985609]::diagnostic::BugAbort as rustc_errors[bce9fff85985609]::diagnostic::EmissionGuarantee>::emit_producing_guarantee
   8:     0x7cac8dfb433c - <rustc_errors[bce9fff85985609]::DiagCtxtHandle>::span_bug::<rustc_span[8408a6129dc91123]::span_encoding::Span, alloc[793c3cb6aa8d80c4]::string::String>
   9:     0x7cac8e04fdd7 - rustc_middle[f2a97f14af05c6cc]::util::bug::opt_span_bug_fmt::<rustc_span[8408a6129dc91123]::span_encoding::Span>::{closure#0}
  10:     0x7cac8e02a1da - rustc_middle[f2a97f14af05c6cc]::ty::context::tls::with_opt::<rustc_middle[f2a97f14af05c6cc]::util::bug::opt_span_bug_fmt<rustc_span[8408a6129dc91123]::span_encoding::Span>::{closure#0}, !>::{closure#0}
  11:     0x7cac8e02a04b - rustc_middle[f2a97f14af05c6cc]::ty::context::tls::with_context_opt::<rustc_middle[f2a97f14af05c6cc]::ty::context::tls::with_opt<rustc_middle[f2a97f14af05c6cc]::util::bug::opt_span_bug_fmt<rustc_span[8408a6129dc91123]::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
  12:     0x7cac8caf9787 - rustc_middle[f2a97f14af05c6cc]::util::bug::span_bug_fmt::<rustc_span[8408a6129dc91123]::span_encoding::Span>
  13:     0x7cac8f5e3a1a - <rustc_middle[f2a97f14af05c6cc]::ty::instance::Instance>::expect_resolve
  14:     0x7cac8bde667a - rustc_monomorphize[325879acd6cd2e9b]::collector::items_of_instance
  15:     0x7cac8f0163b2 - rustc_query_impl[501993b47488a72e]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[501993b47488a72e]::query_impl::items_of_instance::dynamic_query::{closure#2}::{closure#0}, rustc_middle[f2a97f14af05c6cc]::query::erase::Erased<[u8; 32usize]>>
  16:     0x7cac8fb2d004 - rustc_query_system[bf8363d990f85ee2]::query::plumbing::try_execute_query::<rustc_query_impl[501993b47488a72e]::DynamicConfig<rustc_query_system[bf8363d990f85ee2]::query::caches::DefaultCache<(rustc_middle[f2a97f14af05c6cc]::ty::instance::Instance, rustc_middle[f2a97f14af05c6cc]::mir::mono::CollectionMode), rustc_middle[f2a97f14af05c6cc]::query::erase::Erased<[u8; 32usize]>>, false, false, false>, rustc_query_impl[501993b47488a72e]::plumbing::QueryCtxt, true>
  17:     0x7cac8fb2c1b9 - rustc_query_impl[501993b47488a72e]::query_impl::items_of_instance::get_query_incr::__rust_end_short_backtrace
  18:     0x7cac8fb27c31 - rustc_monomorphize[325879acd6cd2e9b]::collector::collect_items_rec::{closure#0}
  19:     0x7cac8fb28967 - rustc_monomorphize[325879acd6cd2e9b]::collector::collect_items_rec
  20:     0x7cac8fb2954d - rustc_monomorphize[325879acd6cd2e9b]::collector::collect_items_rec
  21:     0x7cac8fb2954d - rustc_monomorphize[325879acd6cd2e9b]::collector::collect_items_rec
  22:     0x7cac8fb2954d - rustc_monomorphize[325879acd6cd2e9b]::collector::collect_items_rec
  23:     0x7cac8fb2954d - rustc_monomorphize[325879acd6cd2e9b]::collector::collect_items_rec
  24:     0x7cac8fb2954d - rustc_monomorphize[325879acd6cd2e9b]::collector::collect_items_rec
  25:     0x7cac8fb2954d - rustc_monomorphize[325879acd6cd2e9b]::collector::collect_items_rec
  26:     0x7cac8f61c721 - rustc_monomorphize[325879acd6cd2e9b]::collector::collect_crate_mono_items::{closure#1}::{closure#0}
  27:     0x7cac8f78a8f2 - rustc_monomorphize[325879acd6cd2e9b]::partitioning::collect_and_partition_mono_items
  28:     0x7cac90265bd6 - rustc_query_impl[501993b47488a72e]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[501993b47488a72e]::query_impl::collect_and_partition_mono_items::dynamic_query::{closure#2}::{closure#0}, rustc_middle[f2a97f14af05c6cc]::query::erase::Erased<[u8; 40usize]>>
  29:     0x7cac90265bb9 - <rustc_query_impl[501993b47488a72e]::query_impl::collect_and_partition_mono_items::dynamic_query::{closure#2} as core[5f4b3e22d16e4fc2]::ops::function::FnOnce<(rustc_middle[f2a97f14af05c6cc]::ty::context::TyCtxt, ())>>::call_once
  30:     0x7cac90264709 - rustc_query_system[bf8363d990f85ee2]::query::plumbing::try_execute_query::<rustc_query_impl[501993b47488a72e]::DynamicConfig<rustc_query_system[bf8363d990f85ee2]::query::caches::SingleCache<rustc_middle[f2a97f14af05c6cc]::query::erase::Erased<[u8; 40usize]>>, false, false, false>, rustc_query_impl[501993b47488a72e]::plumbing::QueryCtxt, true>
  31:     0x7cac9026435e - <rustc_query_impl[501993b47488a72e]::plumbing::query_callback<rustc_query_impl[501993b47488a72e]::query_impl::collect_and_partition_mono_items::QueryType>::{closure#0} as core[5f4b3e22d16e4fc2]::ops::function::FnOnce<(rustc_middle[f2a97f14af05c6cc]::ty::context::TyCtxt, rustc_query_system[bf8363d990f85ee2]::dep_graph::dep_node::DepNode, rustc_query_system[bf8363d990f85ee2]::dep_graph::serialized::SerializedDepNodeIndex)>>::call_once
  32:     0x7cac8f02126b - <rustc_query_system[bf8363d990f85ee2]::dep_graph::graph::DepGraphData<rustc_middle[f2a97f14af05c6cc]::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl[501993b47488a72e]::plumbing::QueryCtxt>
  33:     0x7cac8f99dd62 - <rustc_query_system[bf8363d990f85ee2]::dep_graph::graph::DepGraphData<rustc_middle[f2a97f14af05c6cc]::dep_graph::DepsType>>::try_mark_green::<rustc_query_impl[501993b47488a72e]::plumbing::QueryCtxt>
  34:     0x7cac8fe309ef - rustc_query_system[bf8363d990f85ee2]::query::plumbing::try_execute_query::<rustc_query_impl[501993b47488a72e]::DynamicConfig<rustc_data_structures[80a716b1d328ff09]::vec_cache::VecCache<rustc_span[8408a6129dc91123]::def_id::CrateNum, rustc_middle[f2a97f14af05c6cc]::query::erase::Erased<[u8; 16usize]>, rustc_query_system[bf8363d990f85ee2]::dep_graph::graph::DepNodeIndex>, false, false, false>, rustc_query_impl[501993b47488a72e]::plumbing::QueryCtxt, true>
  35:     0x7cac8fe30316 - rustc_query_impl[501993b47488a72e]::query_impl::exported_symbols::get_query_incr::__rust_end_short_backtrace
  36:     0x7cac8f7bf40d - <rustc_metadata[586799791d02f671]::rmeta::encoder::EncodeContext>::encode_crate_root
  37:     0x7cac8fe9f988 - rustc_metadata[586799791d02f671]::rmeta::encoder::encode_metadata
  38:     0x7cac8fdceb73 - rustc_metadata[586799791d02f671]::fs::encode_and_write_metadata
  39:     0x7cac90167044 - <rustc_interface[271bc9beef838f9c]::queries::Linker>::codegen_and_build_linker
  40:     0x7cac90164cb8 - rustc_interface[271bc9beef838f9c]::passes::create_and_enter_global_ctxt::<core[5f4b3e22d16e4fc2]::option::Option<rustc_interface[271bc9beef838f9c]::queries::Linker>, rustc_driver_impl[d463d84a4fb91b86]::run_compiler::{closure#0}::{closure#2}>::{closure#2}::{closure#0}
  41:     0x7cac900a64cf - rustc_interface[271bc9beef838f9c]::interface::run_compiler::<(), rustc_driver_impl[d463d84a4fb91b86]::run_compiler::{closure#0}>::{closure#1}
  42:     0x7cac90061346 - std[a256a5eabf3e1cec]::sys::backtrace::__rust_begin_short_backtrace::<rustc_interface[271bc9beef838f9c]::util::run_in_thread_with_globals<rustc_interface[271bc9beef838f9c]::util::run_in_thread_pool_with_globals<rustc_interface[271bc9beef838f9c]::interface::run_compiler<(), rustc_driver_impl[d463d84a4fb91b86]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>
  43:     0x7cac90060feb - <<std[a256a5eabf3e1cec]::thread::Builder>::spawn_unchecked_<rustc_interface[271bc9beef838f9c]::util::run_in_thread_with_globals<rustc_interface[271bc9beef838f9c]::util::run_in_thread_pool_with_globals<rustc_interface[271bc9beef838f9c]::interface::run_compiler<(), rustc_driver_impl[d463d84a4fb91b86]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core[5f4b3e22d16e4fc2]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  44:     0x7cac9006233d - std::sys::pal::unix::thread::Thread::new::thread_start::hc104b4a4d7e82f43
  45:     0x7cac89ca2ef1 - <unknown>
  46:     0x7cac89d3445c - <unknown>
  47:                0x0 - <unknown>


query stack during panic:
#0 [items_of_instance] collecting items used by `test_messages::test_distinguished::_::<impl at fuzz/common/src/test_messages.rs:520:43: 520:50>::raw_borrow_decode_field`
#1 [collect_and_partition_mono_items] collect_and_partition_mono_items
#2 [exported_symbols] collecting exported symbols for crate `0`
end of query stack
thread 'rustc' panicked at compiler/rustc_middle/src/ty/instance.rs:633:21:
Box<dyn Any>
stack backtrace:
   0:     0x7cac905554a5 - std::backtrace::Backtrace::create::h6e0b74fca65b6881
   1:     0x7cac8e95c7a5 - std::backtrace::Backtrace::force_capture::h90fc66630024cad9
   2:     0x7cac8d99fa81 - std[a256a5eabf3e1cec]::panicking::update_hook::<alloc[793c3cb6aa8d80c4]::boxed::Box<rustc_driver_impl[d463d84a4fb91b86]::install_ice_hook::{closure#1}>>::{closure#0}
   3:     0x7cac8e9766d3 - std::panicking::rust_panic_with_hook::ha6427448e83ac9ba
   4:     0x7cac8d9db141 - std[a256a5eabf3e1cec]::panicking::begin_panic::<rustc_errors[bce9fff85985609]::ExplicitBug>::{closure#0}
   5:     0x7cac8d9cf176 - std[a256a5eabf3e1cec]::sys::backtrace::__rust_end_short_backtrace::<std[a256a5eabf3e1cec]::panicking::begin_panic<rustc_errors[bce9fff85985609]::ExplicitBug>::{closure#0}, !>
   6:     0x7cac8d9ceffb - std[a256a5eabf3e1cec]::panicking::begin_panic::<rustc_errors[bce9fff85985609]::ExplicitBug>
   7:     0x7cac8d9e58b1 - <rustc_errors[bce9fff85985609]::diagnostic::BugAbort as rustc_errors[bce9fff85985609]::diagnostic::EmissionGuarantee>::emit_producing_guarantee
   8:     0x7cac8dfb433c - <rustc_errors[bce9fff85985609]::DiagCtxtHandle>::span_bug::<rustc_span[8408a6129dc91123]::span_encoding::Span, alloc[793c3cb6aa8d80c4]::string::String>
   9:     0x7cac8e04fdd7 - rustc_middle[f2a97f14af05c6cc]::util::bug::opt_span_bug_fmt::<rustc_span[8408a6129dc91123]::span_encoding::Span>::{closure#0}
  10:     0x7cac8e02a1da - rustc_middle[f2a97f14af05c6cc]::ty::context::tls::with_opt::<rustc_middle[f2a97f14af05c6cc]::util::bug::opt_span_bug_fmt<rustc_span[8408a6129dc91123]::span_encoding::Span>::{closure#0}, !>::{closure#0}
  11:     0x7cac8e02a04b - rustc_middle[f2a97f14af05c6cc]::ty::context::tls::with_context_opt::<rustc_middle[f2a97f14af05c6cc]::ty::context::tls::with_opt<rustc_middle[f2a97f14af05c6cc]::util::bug::opt_span_bug_fmt<rustc_span[8408a6129dc91123]::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
  12:     0x7cac8caf9787 - rustc_middle[f2a97f14af05c6cc]::util::bug::span_bug_fmt::<rustc_span[8408a6129dc91123]::span_encoding::Span>
  13:     0x7cac8f5e3a1a - <rustc_middle[f2a97f14af05c6cc]::ty::instance::Instance>::expect_resolve
  14:     0x7cac8bde667a - rustc_monomorphize[325879acd6cd2e9b]::collector::items_of_instance
  15:     0x7cac8f0163b2 - rustc_query_impl[501993b47488a72e]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[501993b47488a72e]::query_impl::items_of_instance::dynamic_query::{closure#2}::{closure#0}, rustc_middle[f2a97f14af05c6cc]::query::erase::Erased<[u8; 32usize]>>
  16:     0x7cac8fb2d004 - rustc_query_system[bf8363d990f85ee2]::query::plumbing::try_execute_query::<rustc_query_impl[501993b47488a72e]::DynamicConfig<rustc_query_system[bf8363d990f85ee2]::query::caches::DefaultCache<(rustc_middle[f2a97f14af05c6cc]::ty::instance::Instance, rustc_middle[f2a97f14af05c6cc]::mir::mono::CollectionMode), rustc_middle[f2a97f14af05c6cc]::query::erase::Erased<[u8; 32usize]>>, false, false, false>, rustc_query_impl[501993b47488a72e]::plumbing::QueryCtxt, true>
  17:     0x7cac8fb2c1b9 - rustc_query_impl[501993b47488a72e]::query_impl::items_of_instance::get_query_incr::__rust_end_short_backtrace
  18:     0x7cac8fb27c31 - rustc_monomorphize[325879acd6cd2e9b]::collector::collect_items_rec::{closure#0}
  19:     0x7cac8fb28967 - rustc_monomorphize[325879acd6cd2e9b]::collector::collect_items_rec
  20:     0x7cac8fb2954d - rustc_monomorphize[325879acd6cd2e9b]::collector::collect_items_rec
  21:     0x7cac8fb2954d - rustc_monomorphize[325879acd6cd2e9b]::collector::collect_items_rec
  22:     0x7cac8fb2954d - rustc_monomorphize[325879acd6cd2e9b]::collector::collect_items_rec
  23:     0x7cac8fb2954d - rustc_monomorphize[325879acd6cd2e9b]::collector::collect_items_rec
  24:     0x7cac8fb2954d - rustc_monomorphize[325879acd6cd2e9b]::collector::collect_items_rec
  25:     0x7cac8fb2954d - rustc_monomorphize[325879acd6cd2e9b]::collector::collect_items_rec
  26:     0x7cac8f61c721 - rustc_monomorphize[325879acd6cd2e9b]::collector::collect_crate_mono_items::{closure#1}::{closure#0}
  27:     0x7cac8f78a8f2 - rustc_monomorphize[325879acd6cd2e9b]::partitioning::collect_and_partition_mono_items
  28:     0x7cac90265bd6 - rustc_query_impl[501993b47488a72e]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[501993b47488a72e]::query_impl::collect_and_partition_mono_items::dynamic_query::{closure#2}::{closure#0}, rustc_middle[f2a97f14af05c6cc]::query::erase::Erased<[u8; 40usize]>>
  29:     0x7cac90265bb9 - <rustc_query_impl[501993b47488a72e]::query_impl::collect_and_partition_mono_items::dynamic_query::{closure#2} as core[5f4b3e22d16e4fc2]::ops::function::FnOnce<(rustc_middle[f2a97f14af05c6cc]::ty::context::TyCtxt, ())>>::call_once
  30:     0x7cac90264709 - rustc_query_system[bf8363d990f85ee2]::query::plumbing::try_execute_query::<rustc_query_impl[501993b47488a72e]::DynamicConfig<rustc_query_system[bf8363d990f85ee2]::query::caches::SingleCache<rustc_middle[f2a97f14af05c6cc]::query::erase::Erased<[u8; 40usize]>>, false, false, false>, rustc_query_impl[501993b47488a72e]::plumbing::QueryCtxt, true>
  31:     0x7cac9026435e - <rustc_query_impl[501993b47488a72e]::plumbing::query_callback<rustc_query_impl[501993b47488a72e]::query_impl::collect_and_partition_mono_items::QueryType>::{closure#0} as core[5f4b3e22d16e4fc2]::ops::function::FnOnce<(rustc_middle[f2a97f14af05c6cc]::ty::context::TyCtxt, rustc_query_system[bf8363d990f85ee2]::dep_graph::dep_node::DepNode, rustc_query_system[bf8363d990f85ee2]::dep_graph::serialized::SerializedDepNodeIndex)>>::call_once
  32:     0x7cac8f02126b - <rustc_query_system[bf8363d990f85ee2]::dep_graph::graph::DepGraphData<rustc_middle[f2a97f14af05c6cc]::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl[501993b47488a72e]::plumbing::QueryCtxt>
  33:     0x7cac8f99dd62 - <rustc_query_system[bf8363d990f85ee2]::dep_graph::graph::DepGraphData<rustc_middle[f2a97f14af05c6cc]::dep_graph::DepsType>>::try_mark_green::<rustc_query_impl[501993b47488a72e]::plumbing::QueryCtxt>
  34:     0x7cac8fe309ef - rustc_query_system[bf8363d990f85ee2]::query::plumbing::try_execute_query::<rustc_query_impl[501993b47488a72e]::DynamicConfig<rustc_data_structures[80a716b1d328ff09]::vec_cache::VecCache<rustc_span[8408a6129dc91123]::def_id::CrateNum, rustc_middle[f2a97f14af05c6cc]::query::erase::Erased<[u8; 16usize]>, rustc_query_system[bf8363d990f85ee2]::dep_graph::graph::DepNodeIndex>, false, false, false>, rustc_query_impl[501993b47488a72e]::plumbing::QueryCtxt, true>
  35:     0x7cac8fe30316 - rustc_query_impl[501993b47488a72e]::query_impl::exported_symbols::get_query_incr::__rust_end_short_backtrace
  36:     0x7cac8f7bf40d - <rustc_metadata[586799791d02f671]::rmeta::encoder::EncodeContext>::encode_crate_root
  37:     0x7cac8fe9f988 - rustc_metadata[586799791d02f671]::rmeta::encoder::encode_metadata
  38:     0x7cac8fdceb73 - rustc_metadata[586799791d02f671]::fs::encode_and_write_metadata
  39:     0x7cac90167044 - <rustc_interface[271bc9beef838f9c]::queries::Linker>::codegen_and_build_linker
  40:     0x7cac90164cb8 - rustc_interface[271bc9beef838f9c]::passes::create_and_enter_global_ctxt::<core[5f4b3e22d16e4fc2]::option::Option<rustc_interface[271bc9beef838f9c]::queries::Linker>, rustc_driver_impl[d463d84a4fb91b86]::run_compiler::{closure#0}::{closure#2}>::{closure#2}::{closure#0}
  41:     0x7cac900a64cf - rustc_interface[271bc9beef838f9c]::interface::run_compiler::<(), rustc_driver_impl[d463d84a4fb91b86]::run_compiler::{closure#0}>::{closure#1}
  42:     0x7cac90061346 - std[a256a5eabf3e1cec]::sys::backtrace::__rust_begin_short_backtrace::<rustc_interface[271bc9beef838f9c]::util::run_in_thread_with_globals<rustc_interface[271bc9beef838f9c]::util::run_in_thread_pool_with_globals<rustc_interface[271bc9beef838f9c]::interface::run_compiler<(), rustc_driver_impl[d463d84a4fb91b86]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>
  43:     0x7cac90060feb - <<std[a256a5eabf3e1cec]::thread::Builder>::spawn_unchecked_<rustc_interface[271bc9beef838f9c]::util::run_in_thread_with_globals<rustc_interface[271bc9beef838f9c]::util::run_in_thread_pool_with_globals<rustc_interface[271bc9beef838f9c]::interface::run_compiler<(), rustc_driver_impl[d463d84a4fb91b86]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core[5f4b3e22d16e4fc2]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  44:     0x7cac9006233d - std::sys::pal::unix::thread::Thread::new::thread_start::hc104b4a4d7e82f43
  45:     0x7cac89ca2ef1 - <unknown>
  46:     0x7cac89d3445c - <unknown>
  47:                0x0 - <unknown>


query stack during panic:
#0 [items_of_instance] collecting items used by `test_messages::test_distinguished::_::<impl at fuzz/common/src/test_messages.rs:520:43: 520:50>::raw_borrow_decode_field_distinguished`
#1 [collect_and_partition_mono_items] collect_and_partition_mono_items
#2 [exported_symbols] collecting exported symbols for crate `0`
end of query stack

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️S-needs-reproStatus: This issue has no reproduction and needs a reproduction to make progress.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