@@ -45,9 +45,6 @@ macro_rules! forward {
45
45
pub fn $n: ident( & self , $( $name: ident: $ty: ty) ,* $( , ) ?) -> & Self
46
46
) => {
47
47
$( #[ $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) ) ]
51
48
#[ doc = concat!( "See [`Diagnostic::" , stringify!( $n) , "()`]." ) ]
52
49
pub fn $n( & self , $( $name: $ty) ,* ) -> & Self {
53
50
self . diagnostic. $n( $( $name) ,* ) ;
@@ -62,9 +59,6 @@ macro_rules! forward {
62
59
) => {
63
60
$( #[ $attrs] ) *
64
61
#[ 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) ) ]
68
62
pub fn $n( & mut self , $( $name: $ty) ,* ) -> & mut Self {
69
63
self . 0 . diagnostic. $n( $( $name) ,* ) ;
70
64
self
@@ -82,9 +76,6 @@ macro_rules! forward {
82
76
) => {
83
77
$( #[ $attrs] ) *
84
78
#[ 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) ) ]
88
79
pub fn $n<$( $generic: $bound) ,* >( & mut self , $( $name: $ty) ,* ) -> & mut Self {
89
80
self . 0 . diagnostic. $n( $( $name) ,* ) ;
90
81
self
0 commit comments