@@ -45,9 +45,6 @@ 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) ) ]
5148 #[ doc = concat!( "See [`Diagnostic::" , stringify!( $n) , "()`]." ) ]
5249 pub fn $n( & self , $( $name: $ty) ,* ) -> & Self {
5350 self . diagnostic. $n( $( $name) ,* ) ;
@@ -62,9 +59,6 @@ macro_rules! forward {
6259 ) => {
6360 $( #[ $attrs] ) *
6461 #[ 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) ) ]
6862 pub fn $n( & mut self , $( $name: $ty) ,* ) -> & mut Self {
6963 self . 0 . diagnostic. $n( $( $name) ,* ) ;
7064 self
@@ -82,9 +76,6 @@ macro_rules! forward {
8276 ) => {
8377 $( #[ $attrs] ) *
8478 #[ 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) ) ]
8879 pub fn $n<$( $generic: $bound) ,* >( & mut self , $( $name: $ty) ,* ) -> & mut Self {
8980 self . 0 . diagnostic. $n( $( $name) ,* ) ;
9081 self
0 commit comments