|
1 | 1 | use crate::hir::map::definitions::DefPathData;
|
2 | 2 | use crate::ty::context::TyCtxt;
|
3 |
| -use crate::ty::query::config::QueryAccessors; |
4 |
| -use crate::ty::query::plumbing::QueryState; |
| 3 | +use crate::ty::query::caches::QueryCache; |
| 4 | +use crate::ty::query::plumbing::QueryStateImpl; |
5 | 5 | use measureme::{StringComponent, StringId};
|
6 | 6 | use rustc_data_structures::fx::FxHashMap;
|
7 | 7 | use rustc_data_structures::profiling::SelfProfiler;
|
@@ -157,13 +157,14 @@ where
|
157 | 157 | /// Allocate the self-profiling query strings for a single query cache. This
|
158 | 158 | /// method is called from `alloc_self_profile_query_strings` which knows all
|
159 | 159 | /// the queries via macro magic.
|
160 |
| -pub(super) fn alloc_self_profile_query_strings_for_query_cache<'tcx, Q>( |
| 160 | +pub(super) fn alloc_self_profile_query_strings_for_query_cache<'tcx, K, V, C>( |
161 | 161 | tcx: TyCtxt<'tcx>,
|
162 | 162 | query_name: &'static str,
|
163 |
| - query_state: &QueryState<'tcx, Q>, |
| 163 | + query_state: &QueryStateImpl<'tcx, K, V, C>, |
164 | 164 | string_cache: &mut QueryKeyStringCache,
|
165 | 165 | ) where
|
166 |
| - Q: QueryAccessors<'tcx>, |
| 166 | + K: Debug + Clone, |
| 167 | + C: QueryCache<K, V>, |
167 | 168 | {
|
168 | 169 | tcx.prof.with_profiler(|profiler| {
|
169 | 170 | let event_id_builder = profiler.event_id_builder();
|
|
0 commit comments