From 5142af7e91c6fec2d50aee85e51d66bef78d74e9 Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Wed, 18 Feb 2026 20:29:49 +1100 Subject: [PATCH] Remove `$attr` from `QueryArenas`/`QueryCaches`. It doesn't make much sense to put the query doc comments on these structs. (The doc comments *are* put on various query functions, where it makes more sense.) --- compiler/rustc_middle/src/query/plumbing.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/compiler/rustc_middle/src/query/plumbing.rs b/compiler/rustc_middle/src/query/plumbing.rs index 4e19ebb9016a..dfa122510729 100644 --- a/compiler/rustc_middle/src/query/plumbing.rs +++ b/compiler/rustc_middle/src/query/plumbing.rs @@ -395,7 +395,6 @@ pub fn provided_to_erased<'tcx>( #[derive(Default)] pub struct QueryArenas<'tcx> { $( - $(#[$attr])* pub $name: if_arena_cache!( [$($modifiers)*] // Use the `ArenaCached` helper trait to determine the arena's value type. @@ -409,7 +408,7 @@ pub struct QueryArenas<'tcx> { #[derive(Default)] pub struct QueryCaches<'tcx> { $( - $(#[$attr])* pub $name: $name::Storage<'tcx>, + pub $name: $name::Storage<'tcx>, )* }