diff options
| author | Tobias Bucher <tobiasbucher5991@gmail.com> | 2024-07-29 13:31:59 +0200 |
|---|---|---|
| committer | Tobias Bucher <tobiasbucher5991@gmail.com> | 2024-08-13 11:32:47 +0200 |
| commit | 811d7dd11302e86d1678f7d61586d51e54c47e27 (patch) | |
| tree | 37f2ecc84eca200528ac33b01c10158c3fe06ea8 /library/std/src/env.rs | |
| parent | 399ef23d2bf2b1619d360a87de9b83edf9d99762 (diff) | |
| download | rust-811d7dd11302e86d1678f7d61586d51e54c47e27.tar.gz rust-811d7dd11302e86d1678f7d61586d51e54c47e27.zip | |
`#[deprecated_safe_2024]`: Also use the `// TODO:` hint in the compiler error
This doesn't work for translated compiler error messages.
Diffstat (limited to 'library/std/src/env.rs')
| -rw-r--r-- | library/std/src/env.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/env.rs b/library/std/src/env.rs index 631d86dbe6e..80890e61471 100644 --- a/library/std/src/env.rs +++ b/library/std/src/env.rs @@ -359,7 +359,7 @@ impl Error for VarError { #[cfg_attr( not(bootstrap), rustc_deprecated_safe_2024( - todo = "Audit that the environment access only happens in single-threaded code." + audit_that = "the environment access only happens in single-threaded code" ) )] #[stable(feature = "env", since = "1.0.0")] @@ -429,7 +429,7 @@ pub unsafe fn set_var<K: AsRef<OsStr>, V: AsRef<OsStr>>(key: K, value: V) { #[cfg_attr( not(bootstrap), rustc_deprecated_safe_2024( - todo = "Audit that the environment access only happens in single-threaded code." + audit_that = "the environment access only happens in single-threaded code" ) )] #[stable(feature = "env", since = "1.0.0")] |
