about summary refs log tree commit diff
path: root/library/std/src/env.rs
diff options
context:
space:
mode:
authorBoxy <rust@boxyuwu.dev>2024-09-05 17:23:40 +0100
committerBoxy <rust@boxyuwu.dev>2024-09-05 17:24:01 +0100
commit0091b8ab2a16aea880e2fe5d3c876f4f743640d5 (patch)
treeca11d992224c243236c438da5db5d151479dbe16 /library/std/src/env.rs
parenta9998704d378dcb7bf399a5835dab1d22543c01f (diff)
downloadrust-0091b8ab2a16aea880e2fe5d3c876f4f743640d5.tar.gz
rust-0091b8ab2a16aea880e2fe5d3c876f4f743640d5.zip
update cfgs
Diffstat (limited to 'library/std/src/env.rs')
-rw-r--r--library/std/src/env.rs16
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) {