Skip to content

Commit

Permalink
#[deprecated_safe_2024]: Also use the // TODO: hint in the compil…
Browse files Browse the repository at this point in the history
…er error

This doesn't work for translated compiler error messages.
  • Loading branch information
tbu- committed Aug 13, 2024
1 parent 23a1968 commit f81c96a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions std/src/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand Down Expand Up @@ -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")]
Expand Down

0 comments on commit f81c96a

Please sign in to comment.