From 3c1a0983cd032566d1260febf4c603c25002cd9b Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Thu, 27 Jun 2024 09:37:06 -0700 Subject: [PATCH] Add TODO comment added by rustc. Co-authored-by: Tobias Bucher --- src/rust-2024/newly-unsafe-functions.md | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rust-2024/newly-unsafe-functions.md b/src/rust-2024/newly-unsafe-functions.md index 378bd4c5..41e5bcc4 100644 --- a/src/rust-2024/newly-unsafe-functions.md +++ b/src/rust-2024/newly-unsafe-functions.md @@ -62,6 +62,7 @@ to be: ```rust fn main() { + // TODO: Audit that the environment access only happens in single-threaded code. unsafe { std::env::set_var("FOO", "123") }; } ```