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