diff options
| author | bors <bors@rust-lang.org> | 2025-03-16 11:15:56 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-03-16 11:15:56 +0000 |
| commit | d497e43a1664eaad5e5850f5f8c11c9e16f5ef66 (patch) | |
| tree | f5e08d135e0754640157518802e078a54fe8a2e8 /library/std/src | |
| parent | 5f3b84a42199278114b6e3d95f406de05e0446f4 (diff) | |
| parent | e714c3be9f8c459b1b81b212717e3693d2cb32df (diff) | |
| download | rust-d497e43a1664eaad5e5850f5f8c11c9e16f5ef66.tar.gz rust-d497e43a1664eaad5e5850f5f8c11c9e16f5ef66.zip | |
Auto merge of #138551 - jieyouxu:rollup-ttktelm, r=jieyouxu
Rollup of 4 pull requests
Successful merges:
- #135080 (core: Make `Debug` impl of raw pointers print metadata if present)
- #137492 (libstd: rustdoc: correct note on fds 0/1/2 pre-main)
- #137538 (fix doc path in std::fmt macro)
- #138549 (Fix the OperandRef type for NullOp::{UbChecks,ContractChecks})
r? `@ghost`
`@rustbot` modify labels: rollup
Diffstat (limited to 'library/std/src')
| -rw-r--r-- | library/std/src/lib.rs | 4 | ||||
| -rw-r--r-- | library/std/src/macros.rs | 8 |
2 files changed, 7 insertions, 5 deletions
diff --git a/library/std/src/lib.rs b/library/std/src/lib.rs index 35ada678740..ad005833ad5 100644 --- a/library/std/src/lib.rs +++ b/library/std/src/lib.rs @@ -174,7 +174,9 @@ //! //! - after-main use of thread-locals, which also affects additional features: //! - [`thread::current()`] -//! - before-main stdio file descriptors are not guaranteed to be open on unix platforms +//! - under UNIX, before main, file descriptors 0, 1, and 2 may be unchanged +//! (they are guaranteed to be open during main, +//! and are opened to /dev/null O_RDWR if they weren't open on program start) //! //! //! [I/O]: io diff --git a/library/std/src/macros.rs b/library/std/src/macros.rs index e0f9f0bb5ce..f008d42804c 100644 --- a/library/std/src/macros.rs +++ b/library/std/src/macros.rs @@ -41,7 +41,7 @@ macro_rules! panic { /// Use `print!` only for the primary output of your program. Use /// [`eprint!`] instead to print error and progress messages. /// -/// See [the formatting documentation in `std::fmt`](../std/fmt/index.html) +/// See the formatting documentation in [`std::fmt`](crate::fmt) /// for details of the macro argument syntax. /// /// [flush]: crate::io::Write::flush @@ -106,7 +106,7 @@ macro_rules! print { /// Use `println!` only for the primary output of your program. Use /// [`eprintln!`] instead to print error and progress messages. /// -/// See [the formatting documentation in `std::fmt`](../std/fmt/index.html) +/// See the formatting documentation in [`std::fmt`](crate::fmt) /// for details of the macro argument syntax. /// /// [`std::fmt`]: crate::fmt @@ -156,7 +156,7 @@ macro_rules! println { /// [`io::stderr`]: crate::io::stderr /// [`io::stdout`]: crate::io::stdout /// -/// See [the formatting documentation in `std::fmt`](../std/fmt/index.html) +/// See the formatting documentation in [`std::fmt`](crate::fmt) /// for details of the macro argument syntax. /// /// # Panics @@ -190,7 +190,7 @@ macro_rules! eprint { /// Use `eprintln!` only for error and progress messages. Use `println!` /// instead for the primary output of your program. /// -/// See [the formatting documentation in `std::fmt`](../std/fmt/index.html) +/// See the formatting documentation in [`std::fmt`](crate::fmt) /// for details of the macro argument syntax. /// /// [`io::stderr`]: crate::io::stderr |
