about summary refs log tree commit diff
path: root/compiler/rustc_errors/src
diff options
context:
space:
mode:
authorJacob Pratt <jacob@jhpratt.dev>2025-03-08 01:27:21 -0500
committerGitHub <noreply@github.com>2025-03-08 01:27:21 -0500
commit0c67061569d2d786c3d4aa1aa428c2c7a7310d97 (patch)
tree28a062f21ee09f95eb35474f3b6e1659bd7a6d60 /compiler/rustc_errors/src
parent720eacf08693418940e857379e1593b6891a09c3 (diff)
parent3cb53df1feaba73b84344c8c0e3dc4120ad8c95b (diff)
downloadrust-0c67061569d2d786c3d4aa1aa428c2c7a7310d97.tar.gz
rust-0c67061569d2d786c3d4aa1aa428c2c7a7310d97.zip
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
Diffstat (limited to 'compiler/rustc_errors/src')
0 files changed, 0 insertions, 0 deletions