Replace QueryStruct with arrays local to rustc_query_impl

This commit is contained in:
John Kåre Alsaker
2023-05-19 03:10:35 +02:00
parent fe76e14955
commit 9c978b955e
4 changed files with 75 additions and 82 deletions

View File

@@ -243,7 +243,7 @@ pub fn alloc_self_profile_query_strings(tcx: TyCtxt<'_>) {
let mut string_cache = QueryKeyStringCache::new();
for query in &tcx.query_system.fns.query_structs {
(query.alloc_self_profile_query_strings)(tcx, &mut string_cache);
for alloc in super::ALLOC_SELF_PROFILE_QUERY_STRINGS.iter() {
alloc(tcx, &mut string_cache)
}
}