File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -992,6 +992,9 @@ pub fn set_output_capture(sink: Option<LocalStream>) -> Option<LocalStream> {
992
992
/// the global stream.
993
993
///
994
994
/// However, if the actual I/O causes an error, this function does panic.
995
+ ///
996
+ /// Writing to non-blocking stdout/stderr can cause an error, which will lead
997
+ /// this function to panic.
995
998
fn print_to < T > ( args : fmt:: Arguments < ' _ > , global_s : fn ( ) -> T , label : & str )
996
999
where
997
1000
T : Write ,
Original file line number Diff line number Diff line change @@ -49,6 +49,9 @@ macro_rules! panic {
49
49
///
50
50
/// Panics if writing to `io::stdout()` fails.
51
51
///
52
+ /// Writing to non-blocking stdout can cause an error, which will lead
53
+ /// this macro to panic.
54
+ ///
52
55
/// # Examples
53
56
///
54
57
/// ```
@@ -107,6 +110,9 @@ macro_rules! print {
107
110
///
108
111
/// Panics if writing to [`io::stdout`] fails.
109
112
///
113
+ /// Writing to non-blocking stdout can cause an error, which will lead
114
+ /// this macro to panic.
115
+ ///
110
116
/// [`io::stdout`]: crate::io::stdout
111
117
///
112
118
/// # Examples
@@ -147,6 +153,9 @@ macro_rules! println {
147
153
///
148
154
/// Panics if writing to `io::stderr` fails.
149
155
///
156
+ /// Writing to non-blocking stdout can cause an error, which will lead
157
+ /// this macro to panic.
158
+ ///
150
159
/// # Examples
151
160
///
152
161
/// ```
@@ -179,6 +188,9 @@ macro_rules! eprint {
179
188
///
180
189
/// Panics if writing to `io::stderr` fails.
181
190
///
191
+ /// Writing to non-blocking stdout can cause an error, which will lead
192
+ /// this macro to panic.
193
+ ///
182
194
/// # Examples
183
195
///
184
196
/// ```
You can’t perform that action at this time.
0 commit comments