Skip to content

Commit 37239b8

Browse files
committed
Auto merge of #101544 - matthiaskrgr:rollup-4urx917, r=matthiaskrgr
Rollup of 14 pull requests Successful merges: - #101343 (Add -api-level to pm command) - #101416 (stdio: Document no support for writing to non-blocking stdio/stderr) - #101435 (Remove unnecessary `EMIT_MIR_FOR_EACH_BITWIDTH`) - #101493 (Pass ImplTraitContext as &mut to avoid the need of ImplTraitContext::reborrow) - #101502 (Do not suggest a semicolon for a macro without `!`) - #101503 (Add debug calls) - #101506 (rustdoc: remove unused CSS `#main-content > .since`) - #101507 (rustdoc: remove unused CSS `#main-content > table td`) - #101521 (Rustdoc-Json: More accurate struct type.) - #101525 (Fix typo in pass_manager.rs) - #101534 (rustdoc: remove unused mobile CSS `.rustdoc { flex-direction }`) - #101535 (Fix error printing mistake in tidy) - #101536 (Add documentation for Attr::is_doc_comment) - #101538 (rustdoc: remove unused CSS `.content .methods > div`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2 parents 415943f + ab287ec commit 37239b8

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

std/src/io/stdio.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -992,6 +992,9 @@ pub fn set_output_capture(sink: Option<LocalStream>) -> Option<LocalStream> {
992992
/// the global stream.
993993
///
994994
/// 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.
995998
fn print_to<T>(args: fmt::Arguments<'_>, global_s: fn() -> T, label: &str)
996999
where
9971000
T: Write,

std/src/macros.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ macro_rules! panic {
4949
///
5050
/// Panics if writing to `io::stdout()` fails.
5151
///
52+
/// Writing to non-blocking stdout can cause an error, which will lead
53+
/// this macro to panic.
54+
///
5255
/// # Examples
5356
///
5457
/// ```
@@ -107,6 +110,9 @@ macro_rules! print {
107110
///
108111
/// Panics if writing to [`io::stdout`] fails.
109112
///
113+
/// Writing to non-blocking stdout can cause an error, which will lead
114+
/// this macro to panic.
115+
///
110116
/// [`io::stdout`]: crate::io::stdout
111117
///
112118
/// # Examples
@@ -147,6 +153,9 @@ macro_rules! println {
147153
///
148154
/// Panics if writing to `io::stderr` fails.
149155
///
156+
/// Writing to non-blocking stdout can cause an error, which will lead
157+
/// this macro to panic.
158+
///
150159
/// # Examples
151160
///
152161
/// ```
@@ -179,6 +188,9 @@ macro_rules! eprint {
179188
///
180189
/// Panics if writing to `io::stderr` fails.
181190
///
191+
/// Writing to non-blocking stdout can cause an error, which will lead
192+
/// this macro to panic.
193+
///
182194
/// # Examples
183195
///
184196
/// ```

0 commit comments

Comments
 (0)