mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
Avoid rustfmt bug on Windows
This commit is contained in:
parent
186b5b2ee2
commit
2c90083f62
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user