From 21f07b55df6e40191446db3414fc115f76c01580 Mon Sep 17 00:00:00 2001 From: bjorn3 Date: Sun, 15 Aug 2021 18:44:06 +0200 Subject: Fix the flock fallback implementation --- compiler/rustc_data_structures/src/flock.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'compiler/rustc_data_structures/src/flock.rs') diff --git a/compiler/rustc_data_structures/src/flock.rs b/compiler/rustc_data_structures/src/flock.rs index 4f5d8d7ea48..293ef4caac4 100644 --- a/compiler/rustc_data_structures/src/flock.rs +++ b/compiler/rustc_data_structures/src/flock.rs @@ -222,6 +222,10 @@ cfg_if! { let msg = "file locks not supported on this platform"; Err(io::Error::new(io::ErrorKind::Other, msg)) } + + pub fn error_unsupported(_err: &io::Error) -> bool { + true + } } } } -- cgit 1.4.1-3-g733a5