Skip to content

Instantly share code, notes, and snippets.

@davidbarsky
Last active November 19, 2024 19:04
Show Gist options
  • Save davidbarsky/c98205b9c74fd7f4c6b2ff8b5deb30b5 to your computer and use it in GitHub Desktop.
Save davidbarsky/c98205b9c74fd7f4c6b2ff8b5deb30b5 to your computer and use it in GitHub Desktop.
thread 'rustc' panicked at /rustc/03ee4845197ce71aa5ee28cb937a3e863b18b42f/compiler/rustc_query_system/src/query/plumbing.rs:729:9:
Found unstable fingerprints for evaluate_obligation(706e470e2fd309c4-4d37fc1b2d5b1225): Ok(EvaluatedToAmbig)
stack backtrace:
0: 0x11289e870 - std::backtrace::Backtrace::create::hb590ce1df6e0c5d2
1: 0x1106f6880 - <alloc[1d87e522c0a46f8e]::boxed::Box<rustc_driver_impl[f43468dcf4e255f1]::install_ice_hook::{closure#0}> as core[c817e82c16756310]::ops::function::Fn<(&dyn for<'a, 'b> core[c817e82c16756310]::ops::function::Fn<(&'a std[833b918185a27e46]::panic::PanicHookInfo<'b>,), Output = ()> + core[c817e82c16756310]::marker::Sync + core[c817e82c16756310]::marker::Send, &std[833b918185a27e46]::panic::PanicHookInfo)>>::call
2: 0x1128b8fdc - std::panicking::rust_panic_with_hook::h93934aa8c7e2fe39
3: 0x1128b8c18 - std::panicking::begin_panic_handler::{{closure}}::h2437105b3c13b3a1
4: 0x1128b6818 - std::sys::backtrace::__rust_end_short_backtrace::h4c4337df8d6bbd69
5: 0x1128b88dc - _rust_begin_unwind
6: 0x114f9b4a4 - core::panicking::panic_fmt::h06001cea3bef5043
7: 0x115114de8 - rustc_query_system[43bdf4a4c8643ec8]::query::plumbing::incremental_verify_ich_failed::<rustc_middle[9023cce8d612c9d9]::ty::context::TyCtxt>
8: 0x111d9c550 - rustc_query_system[43bdf4a4c8643ec8]::query::plumbing::incremental_verify_ich::<rustc_middle[9023cce8d612c9d9]::ty::context::TyCtxt, rustc_middle[9023cce8d612c9d9]::query::erase::Erased<[u8; 2usize]>>
9: 0x111d2808c - rustc_query_system[43bdf4a4c8643ec8]::query::plumbing::try_execute_query::<rustc_query_impl[4c50900c2e951882]::DynamicConfig<rustc_query_system[43bdf4a4c8643ec8]::query::caches::DefaultCache<rustc_type_ir[bb3ee58b6ead41bb]::canonical::CanonicalQueryInput<rustc_middle[9023cce8d612c9d9]::ty::context::TyCtxt, rustc_middle[9023cce8d612c9d9]::ty::ParamEnvAnd<rustc_middle[9023cce8d612c9d9]::ty::predicate::Predicate>>, rustc_middle[9023cce8d612c9d9]::query::erase::Erased<[u8; 2usize]>>, false, false, false>, rustc_query_impl[4c50900c2e951882]::plumbing::QueryCtxt, true>
10: 0x111e6912c - rustc_query_impl[4c50900c2e951882]::query_impl::evaluate_obligation::get_query_incr::__rust_end_short_backtrace
11: 0x112473a10 - <rustc_infer[cae5810f8f7bb256]::infer::InferCtxt as rustc_trait_selection[bca01162ee7a48e9]::traits::query::evaluate_obligation::InferCtxtExt>::evaluate_obligation
12: 0x112473e88 - <rustc_infer[cae5810f8f7bb256]::infer::InferCtxt as rustc_trait_selection[bca01162ee7a48e9]::traits::query::evaluate_obligation::InferCtxtExt>::evaluate_obligation_no_overflow
13: 0x112507970 - <rustc_trait_selection[bca01162ee7a48e9]::traits::fulfill::FulfillProcessor>::process_trait_obligation
14: 0x112506c94 - <rustc_trait_selection[bca01162ee7a48e9]::traits::fulfill::FulfillProcessor as rustc_data_structures[c489b403e0d663f0]::obligation_forest::ObligationProcessor>::process_obligation
15: 0x1124e7a30 - <rustc_data_structures[c489b403e0d663f0]::obligation_forest::ObligationForest<rustc_trait_selection[bca01162ee7a48e9]::traits::fulfill::PendingPredicateObligation>>::process_obligations::<rustc_trait_selection[bca01162ee7a48e9]::traits::fulfill::FulfillProcessor>
16: 0x11250244c - <rustc_trait_selection[bca01162ee7a48e9]::traits::fulfill::FulfillmentContext<rustc_trait_selection[bca01162ee7a48e9]::traits::FulfillmentError> as rustc_infer[cae5810f8f7bb256]::traits::engine::TraitEngine<rustc_trait_selection[bca01162ee7a48e9]::traits::FulfillmentError>>::select_where_possible
17: 0x112500ea8 - <rustc_trait_selection[bca01162ee7a48e9]::traits::fulfill::FulfillmentContext<rustc_trait_selection[bca01162ee7a48e9]::traits::FulfillmentError> as rustc_infer[cae5810f8f7bb256]::traits::engine::TraitEngine<rustc_trait_selection[bca01162ee7a48e9]::traits::FulfillmentError>>::select_all_or_error
18: 0x110b17a0c - rustc_hir_analysis[1c646a2d8a293b04]::check::wfcheck::check_item_type
19: 0x110b1156c - rustc_hir_analysis[1c646a2d8a293b04]::check::wfcheck::check_well_formed
20: 0x111de8f48 - rustc_query_impl[4c50900c2e951882]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[4c50900c2e951882]::query_impl::check_well_formed::dynamic_query::{closure#2}::{closure#0}, rustc_middle[9023cce8d612c9d9]::query::erase::Erased<[u8; 1usize]>>
21: 0x111e2abd0 - <rustc_query_impl[4c50900c2e951882]::query_impl::check_well_formed::dynamic_query::{closure#2} as core[c817e82c16756310]::ops::function::FnOnce<(rustc_middle[9023cce8d612c9d9]::ty::context::TyCtxt, rustc_span[f43a09eadd72a97f]::def_id::LocalDefId)>>::call_once
22: 0x111d89944 - rustc_query_system[43bdf4a4c8643ec8]::query::plumbing::try_execute_query::<rustc_query_impl[4c50900c2e951882]::DynamicConfig<rustc_query_system[43bdf4a4c8643ec8]::query::caches::VecCache<rustc_span[f43a09eadd72a97f]::def_id::LocalDefId, rustc_middle[9023cce8d612c9d9]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[4c50900c2e951882]::plumbing::QueryCtxt, true>
23: 0x111cd9d30 - rustc_query_system[43bdf4a4c8643ec8]::query::plumbing::force_query::<rustc_query_impl[4c50900c2e951882]::DynamicConfig<rustc_query_system[43bdf4a4c8643ec8]::query::caches::VecCache<rustc_span[f43a09eadd72a97f]::def_id::LocalDefId, rustc_middle[9023cce8d612c9d9]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[4c50900c2e951882]::plumbing::QueryCtxt>
24: 0x111dadfb0 - <rustc_query_impl[4c50900c2e951882]::plumbing::query_callback<rustc_query_impl[4c50900c2e951882]::query_impl::check_well_formed::QueryType>::{closure#0} as core[c817e82c16756310]::ops::function::FnOnce<(rustc_middle[9023cce8d612c9d9]::ty::context::TyCtxt, rustc_query_system[43bdf4a4c8643ec8]::dep_graph::dep_node::DepNode)>>::call_once
25: 0x1120120e0 - <rustc_query_system[43bdf4a4c8643ec8]::dep_graph::graph::DepGraphData<rustc_middle[9023cce8d612c9d9]::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl[4c50900c2e951882]::plumbing::QueryCtxt>
26: 0x112011e74 - <rustc_query_system[43bdf4a4c8643ec8]::dep_graph::graph::DepGraphData<rustc_middle[9023cce8d612c9d9]::dep_graph::DepsType>>::try_mark_green::<rustc_query_impl[4c50900c2e951882]::plumbing::QueryCtxt>
27: 0x111cdc990 - rustc_query_system[43bdf4a4c8643ec8]::query::plumbing::ensure_must_run::<rustc_query_impl[4c50900c2e951882]::DynamicConfig<rustc_query_system[43bdf4a4c8643ec8]::query::caches::VecCache<rustc_span[f43a09eadd72a97f]::def_id::LocalDefId, rustc_middle[9023cce8d612c9d9]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[4c50900c2e951882]::plumbing::QueryCtxt>
28: 0x111e45ce8 - rustc_query_impl[4c50900c2e951882]::query_impl::check_mod_type_wf::get_query_incr::__rust_end_short_backtrace
29: 0x110ad1bdc - <rustc_data_structures[c489b403e0d663f0]::sync::parallel::ParallelGuard>::run::<(), rustc_data_structures[c489b403e0d663f0]::sync::parallel::par_for_each_in<&rustc_hir[6cde4740d4d2fcdf]::hir_id::OwnerId, &[rustc_hir[6cde4740d4d2fcdf]::hir_id::OwnerId], <rustc_middle[9023cce8d612c9d9]::hir::map::Map>::par_for_each_module<rustc_hir_analysis[1c646a2d8a293b04]::check_crate::{closure#0}::{closure#0}>::{closure#0}>::{closure#0}::{closure#1}::{closure#0}>
30: 0x110987b9c - rustc_hir_analysis[1c646a2d8a293b04]::check_crate
31: 0x11101c0f4 - rustc_interface[4fc605f3c6e4c2e6]::passes::analysis
32: 0x111decdd8 - rustc_query_impl[4c50900c2e951882]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[4c50900c2e951882]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[9023cce8d612c9d9]::query::erase::Erased<[u8; 1usize]>>
33: 0x111fa56d0 - <rustc_query_impl[4c50900c2e951882]::query_impl::analysis::dynamic_query::{closure#2} as core[c817e82c16756310]::ops::function::FnOnce<(rustc_middle[9023cce8d612c9d9]::ty::context::TyCtxt, ())>>::call_once
34: 0x111cfe4b0 - rustc_query_system[43bdf4a4c8643ec8]::query::plumbing::try_execute_query::<rustc_query_impl[4c50900c2e951882]::DynamicConfig<rustc_query_system[43bdf4a4c8643ec8]::query::caches::SingleCache<rustc_middle[9023cce8d612c9d9]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[4c50900c2e951882]::plumbing::QueryCtxt, true>
35: 0x111e323e0 - rustc_query_impl[4c50900c2e951882]::query_impl::analysis::get_query_incr::__rust_end_short_backtrace
36: 0x11075e5d8 - <rustc_middle[9023cce8d612c9d9]::ty::context::GlobalCtxt>::enter::<rustc_driver_impl[f43468dcf4e255f1]::run_compiler::{closure#0}::{closure#1}::{closure#5}, core[c817e82c16756310]::result::Result<(), rustc_span[f43a09eadd72a97f]::ErrorGuaranteed>>
37: 0x11070d954 - <rustc_interface[4fc605f3c6e4c2e6]::interface::Compiler>::enter::<rustc_driver_impl[f43468dcf4e255f1]::run_compiler::{closure#0}::{closure#1}, core[c817e82c16756310]::result::Result<core[c817e82c16756310]::option::Option<rustc_interface[4fc605f3c6e4c2e6]::queries::Linker>, rustc_span[f43a09eadd72a97f]::ErrorGuaranteed>>
38: 0x11072b908 - <scoped_tls[5d12eaf4948dd19]::ScopedKey<rustc_span[f43a09eadd72a97f]::SessionGlobals>>::set::<rustc_interface[4fc605f3c6e4c2e6]::util::run_in_thread_with_globals<rustc_interface[4fc605f3c6e4c2e6]::util::run_in_thread_pool_with_globals<rustc_interface[4fc605f3c6e4c2e6]::interface::run_compiler<core[c817e82c16756310]::result::Result<(), rustc_span[f43a09eadd72a97f]::ErrorGuaranteed>, rustc_driver_impl[f43468dcf4e255f1]::run_compiler::{closure#0}>::{closure#1}, core[c817e82c16756310]::result::Result<(), rustc_span[f43a09eadd72a97f]::ErrorGuaranteed>>::{closure#0}, core[c817e82c16756310]::result::Result<(), rustc_span[f43a09eadd72a97f]::ErrorGuaranteed>>::{closure#0}::{closure#0}::{closure#0}, core[c817e82c16756310]::result::Result<(), rustc_span[f43a09eadd72a97f]::ErrorGuaranteed>>
39: 0x1106e6d24 - rustc_span[f43a09eadd72a97f]::create_session_globals_then::<core[c817e82c16756310]::result::Result<(), rustc_span[f43a09eadd72a97f]::ErrorGuaranteed>, rustc_interface[4fc605f3c6e4c2e6]::util::run_in_thread_with_globals<rustc_interface[4fc605f3c6e4c2e6]::util::run_in_thread_pool_with_globals<rustc_interface[4fc605f3c6e4c2e6]::interface::run_compiler<core[c817e82c16756310]::result::Result<(), rustc_span[f43a09eadd72a97f]::ErrorGuaranteed>, rustc_driver_impl[f43468dcf4e255f1]::run_compiler::{closure#0}>::{closure#1}, core[c817e82c16756310]::result::Result<(), rustc_span[f43a09eadd72a97f]::ErrorGuaranteed>>::{closure#0}, core[c817e82c16756310]::result::Result<(), rustc_span[f43a09eadd72a97f]::ErrorGuaranteed>>::{closure#0}::{closure#0}::{closure#0}>
40: 0x110746a48 - std[833b918185a27e46]::sys::backtrace::__rust_begin_short_backtrace::<rustc_interface[4fc605f3c6e4c2e6]::util::run_in_thread_with_globals<rustc_interface[4fc605f3c6e4c2e6]::util::run_in_thread_pool_with_globals<rustc_interface[4fc605f3c6e4c2e6]::interface::run_compiler<core[c817e82c16756310]::result::Result<(), rustc_span[f43a09eadd72a97f]::ErrorGuaranteed>, rustc_driver_impl[f43468dcf4e255f1]::run_compiler::{closure#0}>::{closure#1}, core[c817e82c16756310]::result::Result<(), rustc_span[f43a09eadd72a97f]::ErrorGuaranteed>>::{closure#0}, core[c817e82c16756310]::result::Result<(), rustc_span[f43a09eadd72a97f]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[c817e82c16756310]::result::Result<(), rustc_span[f43a09eadd72a97f]::ErrorGuaranteed>>
41: 0x110747a70 - <<std[833b918185a27e46]::thread::Builder>::spawn_unchecked_<rustc_interface[4fc605f3c6e4c2e6]::util::run_in_thread_with_globals<rustc_interface[4fc605f3c6e4c2e6]::util::run_in_thread_pool_with_globals<rustc_interface[4fc605f3c6e4c2e6]::interface::run_compiler<core[c817e82c16756310]::result::Result<(), rustc_span[f43a09eadd72a97f]::ErrorGuaranteed>, rustc_driver_impl[f43468dcf4e255f1]::run_compiler::{closure#0}>::{closure#1}, core[c817e82c16756310]::result::Result<(), rustc_span[f43a09eadd72a97f]::ErrorGuaranteed>>::{closure#0}, core[c817e82c16756310]::result::Result<(), rustc_span[f43a09eadd72a97f]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[c817e82c16756310]::result::Result<(), rustc_span[f43a09eadd72a97f]::ErrorGuaranteed>>::{closure#1} as core[c817e82c16756310]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
42: 0x1128c30e8 - std::sys::pal::unix::thread::Thread::new::thread_start::h85215af4c6e6405d
43: 0x19681f2e4 - __pthread_deallocate
rustc version: 1.84.0-nightly (03ee48451 2024-11-18)
platform: aarch64-apple-darwin
query stack during panic:
#0 [evaluate_obligation] evaluating trait selection obligation `dashmap::DashMap<(InternedDBData, InternedStringId<'a>), salsa::id::Id, core::hash::BuildHasherDefault<rustc_hash::FxHasher>>: core::marker::Sync`
#1 [check_well_formed] checking that `<impl at tests/expanded.rs:202:1: 204:25>::interned_len::interned_len_shim::INTERN_CACHE_` is well-formed
#2 [analysis] running analysis passes on this crate
end of query stack
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment