about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2022-03-08 20:09:44 -0500
committerRalf Jung <post@ralfj.de>2022-03-08 20:09:44 -0500
commit28eb06bd98169c985f4951b6aaf6855d52ffd514 (patch)
treee4b3102c3f4a2d140b629eef075cbbe3d58c7c83
parent2a2b212ea3fd8e8bbc4bd209593a943b44fd9aee (diff)
downloadrust-28eb06bd98169c985f4951b6aaf6855d52ffd514.tar.gz
rust-28eb06bd98169c985f4951b6aaf6855d52ffd514.zip
docs
-rw-r--r--library/std/src/fs.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/library/std/src/fs.rs b/library/std/src/fs.rs
index 0b65336a5a7..d3e668ed9c7 100644
--- a/library/std/src/fs.rs
+++ b/library/std/src/fs.rs
@@ -2049,9 +2049,10 @@ pub fn remove_dir<P: AsRef<Path>>(path: P) -> io::Result<()> {
 ///
 /// [changes]: io#platform-specific-behavior
 ///
-/// On macOS before version 10.10 and REDOX this function is not protected against time-of-check to
-/// time-of-use (TOCTOU) race conditions, and should not be used in security-sensitive code on
-/// those platforms. All other platforms are protected.
+/// On macOS before version 10.10 and REDOX, as well as when running in Miri for any target, this
+/// function is not protected against time-of-check to time-of-use (TOCTOU) race conditions, and
+/// should not be used in security-sensitive code on those platforms. All other platforms are
+/// protected.
 ///
 /// # Errors
 ///