rust-lang/rust — pull request #17203 by brson (2014-09-12 18:26:26+00:00)
Title: Make fs::rename on windows obey Unix rename semantics. #1583

On Unix rename fails if the target directory exists *and contains
other files*. For consistency, emulate that behavior on Windows.

cc @alexcrichton