Skip to content

Commit 21f07b5

Browse files
authored
Fix the flock fallback implementation
1 parent 58d685e commit 21f07b5

File tree

1 file changed

+4
-0
lines changed
  • compiler/rustc_data_structures/src

1 file changed

+4
-0
lines changed

compiler/rustc_data_structures/src/flock.rs

+4
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,10 @@ cfg_if! {
222222
let msg = "file locks not supported on this platform";
223223
Err(io::Error::new(io::ErrorKind::Other, msg))
224224
}
225+
226+
pub fn error_unsupported(_err: &io::Error) -> bool {
227+
true
228+
}
225229
}
226230
}
227231
}

0 commit comments

Comments
 (0)