rust-lang/rust — pull request #15227 by alexcrichton (2014-06-27 21:44:45+00:00)
Title: std: Make unlink()'s more consistent

Currently when a read-only file has unlink() invoked on it on windows, the call
will fail. On unix, however, the call will succeed. In order to have a more
consistent behavior across platforms, this error is recognized on windows and
the file is changed to read-write before removal is attempted.