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.)
This commit is contained in:
Nicholas Nethercote
2026-02-18 20:29:49 +11:00
parent eefb116cb1
commit 5142af7e91
+1 -2
View File
@@ -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>,
)*
}