Skip to content

Commit a18aa81

Browse files
committed
Remove Q parameter from alloc_self_profile_query_strings_for_query_cache.
1 parent fa02dca commit a18aa81

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

src/librustc/ty/query/plumbing.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1043,7 +1043,7 @@ macro_rules! define_queries_inner {
10431043
let mut string_cache = QueryKeyStringCache::new();
10441044

10451045
$({
1046-
alloc_self_profile_query_strings_for_query_cache::<queries::$name<'_>>(
1046+
alloc_self_profile_query_strings_for_query_cache(
10471047
self,
10481048
stringify!($name),
10491049
&self.queries.$name,

src/librustc/ty/query/profiling_support.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use crate::hir::map::definitions::DefPathData;
22
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;
55
use measureme::{StringComponent, StringId};
66
use rustc_data_structures::fx::FxHashMap;
77
use rustc_data_structures::profiling::SelfProfiler;
@@ -157,13 +157,14 @@ where
157157
/// Allocate the self-profiling query strings for a single query cache. This
158158
/// method is called from `alloc_self_profile_query_strings` which knows all
159159
/// 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>(
161161
tcx: TyCtxt<'tcx>,
162162
query_name: &'static str,
163-
query_state: &QueryState<'tcx, Q>,
163+
query_state: &QueryStateImpl<'tcx, K, V, C>,
164164
string_cache: &mut QueryKeyStringCache,
165165
) where
166-
Q: QueryAccessors<'tcx>,
166+
K: Debug + Clone,
167+
C: QueryCache<K, V>,
167168
{
168169
tcx.prof.with_profiler(|profiler| {
169170
let event_id_builder = profiler.event_id_builder();

0 commit comments

Comments
 (0)