Avoid rustfmt bug on Windows

This commit is contained in:
Michael Wright 2019-07-11 05:21:44 +00:00
parent 186b5b2ee2
commit 2c90083f62

View File

@ -44,7 +44,11 @@ pub fn run(check: bool, verbose: bool) {
let entry = entry?;
let path = entry.path();
if path.extension() != Some("rs".as_ref()) || entry.file_name() == "ice-3891.rs" {
if path.extension() != Some("rs".as_ref())
|| entry.file_name() == "ice-3891.rs"
// Avoid rustfmt bug rust-lang/rustfmt#1873
|| cfg!(windows) && entry.file_name() == "implicit_hasher.rs"
{
continue;
}