From f91c8083d8a90d6a275584389e853cccb0b45b08 Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Mon, 9 Feb 2026 11:01:03 +1100 Subject: [PATCH] Adjust `make_dep_kind_vtable_for_query`. It takes an `is_anon` argument, but it's now generic over `QueryFlags`, which contains the same `is_anon` field. So the argument is no longer necessary. --- compiler/rustc_query_impl/src/plumbing.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/compiler/rustc_query_impl/src/plumbing.rs b/compiler/rustc_query_impl/src/plumbing.rs index bbda716eadb0..aefd4418e192 100644 --- a/compiler/rustc_query_impl/src/plumbing.rs +++ b/compiler/rustc_query_impl/src/plumbing.rs @@ -512,12 +512,12 @@ pub(crate) fn make_dep_kind_vtable_for_query< C: QueryCache + 'tcx, const FLAGS: QueryFlags, >( - is_anon: bool, is_eval_always: bool, ) -> DepKindVTable<'tcx> where Q: QueryDispatcherUnerased<'tcx, C, FLAGS>, { + let is_anon = FLAGS.is_anon; let fingerprint_style = if is_anon { FingerprintStyle::Opaque } else { @@ -969,7 +969,6 @@ macro_rules! define_queries { $(pub(crate) fn $name<'tcx>() -> DepKindVTable<'tcx> { use $crate::query_impl::$name::QueryType; $crate::plumbing::make_dep_kind_vtable_for_query::, _, _>( - is_anon!([$($modifiers)*]), is_eval_always!([$($modifiers)*]), ) })*