File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -79,5 +79,7 @@ cfg_if! {
79
79
mod macros;
80
80
pub ( crate ) mod utils;
81
81
82
+ #[ cfg( any( feature = "unstable" , feature = "docs" ) ) ]
83
+ #[ cfg_attr( feature = "docs" , doc( cfg( unstable) ) ) ]
82
84
#[ doc( inline) ]
83
85
pub use std:: { write, writeln} ;
Original file line number Diff line number Diff line change 43
43
/// #
44
44
/// # })
45
45
/// ```
46
+ #[ cfg( any( feature = "unstable" , feature = "docs" ) ) ]
47
+ #[ cfg_attr( feature = "docs" , doc( cfg( unstable) ) ) ]
46
48
#[ macro_export]
47
49
macro_rules! print {
48
50
( $( $arg: tt) * ) => ( $crate:: io:: _print( format_args!( $( $arg) * ) ) )
@@ -79,6 +81,8 @@ macro_rules! print {
79
81
/// #
80
82
/// # })
81
83
/// ```
84
+ #[ cfg( any( feature = "unstable" , feature = "docs" ) ) ]
85
+ #[ cfg_attr( feature = "docs" , doc( cfg( unstable) ) ) ]
82
86
#[ macro_export]
83
87
macro_rules! println {
84
88
( ) => ( $crate:: print!( "\n " ) ) ;
@@ -112,6 +116,8 @@ macro_rules! println {
112
116
/// #
113
117
/// # })
114
118
/// ```
119
+ #[ cfg( any( feature = "unstable" , feature = "docs" ) ) ]
120
+ #[ cfg_attr( feature = "docs" , doc( cfg( unstable) ) ) ]
115
121
#[ macro_export]
116
122
macro_rules! eprint {
117
123
( $( $arg: tt) * ) => ( $crate:: io:: _eprint( format_args!( $( $arg) * ) ) )
@@ -144,6 +150,8 @@ macro_rules! eprint {
144
150
/// #
145
151
/// # })
146
152
/// ```
153
+ #[ cfg( any( feature = "unstable" , feature = "docs" ) ) ]
154
+ #[ cfg_attr( feature = "docs" , doc( cfg( unstable) ) ) ]
147
155
#[ macro_export]
148
156
macro_rules! eprintln {
149
157
( ) => ( async { $crate:: eprint!( "\n " ) . await ; } ) ;
You can’t perform that action at this time.
0 commit comments