diff options
| author | bors <bors@rust-lang.org> | 2025-03-08 12:30:31 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-03-08 12:30:31 +0000 |
| commit | 79b43dfde9dd1e3bed3c6ef7e9cfc708422f671f (patch) | |
| tree | e24140795e20b8859c497e2557bac36c31a88c7a /library/std/src/env.rs | |
| parent | cdd8af229960d05c8dfe5ca3e5f5e2066e676213 (diff) | |
| parent | 6576d35aef7f448c4f2322ffc87375fd0ff01c48 (diff) | |
| download | rust-79b43dfde9dd1e3bed3c6ef7e9cfc708422f671f.tar.gz rust-79b43dfde9dd1e3bed3c6ef7e9cfc708422f671f.zip | |
Auto merge of #138208 - jhpratt:rollup-hlqyu51, r=jhpratt
Rollup of 5 pull requests Successful merges: - #136642 (Put the alloc unit tests in a separate alloctests package) - #137528 (Windows: Fix error in `fs::rename` on Windows 1607) - #137685 (self-contained linker: conservatively default to `-znostart-stop-gc` on x64 linux) - #137757 (On long spans, trim the middle of them to make them fit in the terminal width) - #138189 (Mention `env` and `option_env` macros in `std::env::var` docs) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'library/std/src/env.rs')
| -rw-r--r-- | library/std/src/env.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/library/std/src/env.rs b/library/std/src/env.rs index e62aeb2ede0..6961fa8ea94 100644 --- a/library/std/src/env.rs +++ b/library/std/src/env.rs @@ -202,6 +202,9 @@ impl fmt::Debug for VarsOs { /// Returns [`VarError::NotUnicode`] if the variable's value is not valid /// Unicode. If this is not desired, consider using [`var_os`]. /// +/// Use [`env!`] or [`option_env!`] instead if you want to check environment +/// variables at compile time. +/// /// # Examples /// /// ``` |
