Skip to content

Commit 97c4937

Browse files
Rollup merge of rust-lang#128209 - beetrees:no-macos-10.10, r=jieyouxu
Remove macOS 10.10 dynamic linker bug workaround Rust's current minimum macOS version is 10.12, so the hack can be removed. This PR also updates the `remove_dir_all` docs to reflect that all supported macOS versions are protected against TOCTOU race conditions (the fallback implementation was already removed in rust-lang#127683). try-job: dist-x86_64-apple try-job: dist-aarch64-apple try-job: dist-apple-various try-job: aarch64-apple try-job: x86_64-apple-1
2 parents 7ae6827 + 83938b9 commit 97c4937

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

std/src/fs.rs

+6-7
Original file line numberDiff line numberDiff line change
@@ -2473,16 +2473,15 @@ pub fn remove_dir<P: AsRef<Path>>(path: P) -> io::Result<()> {
24732473
/// # Platform-specific behavior
24742474
///
24752475
/// This function currently corresponds to `openat`, `fdopendir`, `unlinkat` and `lstat` functions
2476-
/// on Unix (except for macOS before version 10.10 and REDOX) and the `CreateFileW`,
2477-
/// `GetFileInformationByHandleEx`, `SetFileInformationByHandle`, and `NtCreateFile` functions on
2478-
/// Windows. Note that, this [may change in the future][changes].
2476+
/// on Unix (except for REDOX) and the `CreateFileW`, `GetFileInformationByHandleEx`,
2477+
/// `SetFileInformationByHandle`, and `NtCreateFile` functions on Windows. Note that, this
2478+
/// [may change in the future][changes].
24792479
///
24802480
/// [changes]: io#platform-specific-behavior
24812481
///
2482-
/// On macOS before version 10.10 and REDOX, as well as when running in Miri for any target, this
2483-
/// function is not protected against time-of-check to time-of-use (TOCTOU) race conditions, and
2484-
/// should not be used in security-sensitive code on those platforms. All other platforms are
2485-
/// protected.
2482+
/// On REDOX, as well as when running in Miri for any target, this function is not protected against
2483+
/// time-of-check to time-of-use (TOCTOU) race conditions, and should not be used in
2484+
/// security-sensitive code on those platforms. All other platforms are protected.
24862485
///
24872486
/// # Errors
24882487
///

0 commit comments

Comments
 (0)