Skip to content

Commit f81c96a

Browse files
committed
#[deprecated_safe_2024]: Also use the // TODO: hint in the compiler error
This doesn't work for translated compiler error messages.
1 parent 23a1968 commit f81c96a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: std/src/env.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ impl Error for VarError {
359359
#[cfg_attr(
360360
not(bootstrap),
361361
rustc_deprecated_safe_2024(
362-
todo = "Audit that the environment access only happens in single-threaded code."
362+
audit_that = "the environment access only happens in single-threaded code"
363363
)
364364
)]
365365
#[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) {
429429
#[cfg_attr(
430430
not(bootstrap),
431431
rustc_deprecated_safe_2024(
432-
todo = "Audit that the environment access only happens in single-threaded code."
432+
audit_that = "the environment access only happens in single-threaded code"
433433
)
434434
)]
435435
#[stable(feature = "env", since = "1.0.0")]

0 commit comments

Comments
 (0)