update cfgs
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user