From 694b86e101a04afe854dc74e307df8409e2cc642 Mon Sep 17 00:00:00 2001 From: Zalathar Date: Tue, 20 Jan 2026 18:07:06 +1100 Subject: [PATCH] `rustc_queries!`: Don't push the `(cache)` modifier twice --- compiler/rustc_macros/src/query.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/compiler/rustc_macros/src/query.rs b/compiler/rustc_macros/src/query.rs index 104e95277a1a2..1ad9bbc3b4b30 100644 --- a/compiler/rustc_macros/src/query.rs +++ b/compiler/rustc_macros/src/query.rs @@ -378,9 +378,6 @@ pub(super) fn rustc_queries(input: TokenStream) -> TokenStream { return_result_from_ensure_ok, ); - if modifiers.cache.is_some() { - attributes.push(quote! { (cache) }); - } // Pass on the cache modifier if modifiers.cache.is_some() { attributes.push(quote! { (cache) });