Remove macOS 10.10 dynamic linker bug workaround · qinheping/verify-rust-std@83938b9 (original) (raw)

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