Skip to content

Commit 8738c48

Browse files
committed
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.)
1 parent 4e11143 commit 8738c48

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

compiler/rustc_middle/src/query/plumbing.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,6 @@ macro_rules! define_callbacks {
389389
#[derive(Default)]
390390
pub struct QueryArenas<'tcx> {
391391
$(
392-
$(#[$attr])*
393392
pub $name: if_arena_cache!(
394393
[$($modifiers)*]
395394
(TypedArena<<$V as $crate::query::arena_cached::ArenaCached<'tcx>>::Allocated>)
@@ -401,7 +400,7 @@ macro_rules! define_callbacks {
401400
#[derive(Default)]
402401
pub struct QueryCaches<'tcx> {
403402
$(
404-
$(#[$attr])* pub $name: $name::Storage<'tcx>,
403+
pub $name: $name::Storage<'tcx>,
405404
)*
406405
}
407406

0 commit comments

Comments
 (0)