diff options
| author | Boxy <rust@boxyuwu.dev> | 2024-09-05 17:23:40 +0100 |
|---|---|---|
| committer | Boxy <rust@boxyuwu.dev> | 2024-09-05 17:24:01 +0100 |
| commit | 0091b8ab2a16aea880e2fe5d3c876f4f743640d5 (patch) | |
| tree | ca11d992224c243236c438da5db5d151479dbe16 /library/std/src/env.rs | |
| parent | a9998704d378dcb7bf399a5835dab1d22543c01f (diff) | |
| download | rust-0091b8ab2a16aea880e2fe5d3c876f4f743640d5.tar.gz rust-0091b8ab2a16aea880e2fe5d3c876f4f743640d5.zip | |
update cfgs
Diffstat (limited to 'library/std/src/env.rs')
| -rw-r--r-- | library/std/src/env.rs | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/library/std/src/env.rs b/library/std/src/env.rs index e06a851658c..28916130b19 100644 --- a/library/std/src/env.rs +++ b/library/std/src/env.rs @@ -354,12 +354,8 @@ impl Error for VarError { /// } /// assert_eq!(env::var(key), Ok("VALUE".to_string())); /// ``` -#[cfg_attr(bootstrap, rustc_deprecated_safe_2024)] -#[cfg_attr( - not(bootstrap), - rustc_deprecated_safe_2024( - audit_that = "the environment access only happens in single-threaded code" - ) +#[rustc_deprecated_safe_2024( + audit_that = "the environment access only happens in single-threaded code" )] #[stable(feature = "env", since = "1.0.0")] pub unsafe fn set_var<K: AsRef<OsStr>, V: AsRef<OsStr>>(key: K, value: V) { @@ -424,12 +420,8 @@ pub unsafe fn set_var<K: AsRef<OsStr>, V: AsRef<OsStr>>(key: K, value: V) { /// } /// assert!(env::var(key).is_err()); /// ``` -#[cfg_attr(bootstrap, rustc_deprecated_safe_2024)] -#[cfg_attr( - not(bootstrap), - rustc_deprecated_safe_2024( - audit_that = "the environment access only happens in single-threaded code" - ) +#[rustc_deprecated_safe_2024( + audit_that = "the environment access only happens in single-threaded code" )] #[stable(feature = "env", since = "1.0.0")] pub unsafe fn remove_var<K: AsRef<OsStr>>(key: K) { |
