1
Fork 0
rust/library/std
Jacob Pratt 0c67061569
Rollup merge of #137528 - ChrisDenton:rename-win, r=joboet
Windows: Fix error in `fs::rename` on Windows 1607

Fixes #137499

There's a bug in our Windows implementation of `fs::rename` that only manifests on a specific version of Windows. Both newer and older versions of Windows work.

I took the safest route to fixing this by using the old `MoveFileExW` function to implement this and only falling back to the new behaviour if that fails. This is similar to what is done in `unlink` (just above this function).

try-job: dist-x86_64-mingw
try-job: dist-x86_64-msvc
2025-03-08 01:27:21 -05:00
..
benches Fix import in bench for wasm 2025-02-12 14:44:30 -08:00
src Rollup merge of #137528 - ChrisDenton:rename-win, r=joboet 2025-03-08 01:27:21 -05:00
tests std: Apply deprecated_safe_2024 2025-02-13 13:10:28 -08:00
build.rs Rollup merge of #137674 - heiher:enable-f16-loong, r=tgross35 2025-03-07 10:12:43 +01:00
Cargo.toml Rollup merge of #138038 - tgross35:update-builtins, r=tgross35 2025-03-06 12:22:29 -05:00