@@ -45,6 +45,9 @@ macro_rules! forward {
4545 pub fn $n: ident( & self , $( $name: ident: $ty: ty) ,* $( , ) ?) -> & Self
4646 ) => {
4747 $( #[ $attrs] ) *
48+ // we always document with --document-private-items
49+ #[ cfg_attr( not( bootstrap) , allow( rustdoc:: private_intra_doc_links) ) ]
50+ #[ cfg_attr( bootstrap, allow( private_intra_doc_links) ) ]
4851 #[ doc = concat!( "See [`Diagnostic::" , stringify!( $n) , "()`]." ) ]
4952 pub fn $n( & self , $( $name: $ty) ,* ) -> & Self {
5053 self . diagnostic. $n( $( $name) ,* ) ;
@@ -59,6 +62,9 @@ macro_rules! forward {
5962 ) => {
6063 $( #[ $attrs] ) *
6164 #[ doc = concat!( "See [`Diagnostic::" , stringify!( $n) , "()`]." ) ]
65+ // we always document with --document-private-items
66+ #[ cfg_attr( not( bootstrap) , allow( rustdoc:: private_intra_doc_links) ) ]
67+ #[ cfg_attr( bootstrap, allow( private_intra_doc_links) ) ]
6268 pub fn $n( & mut self , $( $name: $ty) ,* ) -> & mut Self {
6369 self . 0 . diagnostic. $n( $( $name) ,* ) ;
6470 self
@@ -76,6 +82,9 @@ macro_rules! forward {
7682 ) => {
7783 $( #[ $attrs] ) *
7884 #[ doc = concat!( "See [`Diagnostic::" , stringify!( $n) , "()`]." ) ]
85+ // we always document with --document-private-items
86+ #[ cfg_attr( not( bootstrap) , allow( rustdoc:: private_intra_doc_links) ) ]
87+ #[ cfg_attr( bootstrap, allow( private_intra_doc_links) ) ]
7988 pub fn $n<$( $generic: $bound) ,* >( & mut self , $( $name: $ty) ,* ) -> & mut Self {
8089 self . 0 . diagnostic. $n( $( $name) ,* ) ;
8190 self
0 commit comments