about summary refs log tree commit diff
path: root/compiler/rustc_data_structures/src/flock.rs
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2021-08-15 18:44:06 +0200
committerGitHub <noreply@github.com>2021-08-15 18:44:06 +0200
commit21f07b55df6e40191446db3414fc115f76c01580 (patch)
treedb535fe5faeccb20fe297e2fdad8ce3bf60c2f58 /compiler/rustc_data_structures/src/flock.rs
parent58d685ecb3d4711cf3d21af502ccf51e63ae289c (diff)
downloadrust-21f07b55df6e40191446db3414fc115f76c01580.tar.gz
rust-21f07b55df6e40191446db3414fc115f76c01580.zip
Fix the flock fallback implementation
Diffstat (limited to 'compiler/rustc_data_structures/src/flock.rs')
-rw-r--r--compiler/rustc_data_structures/src/flock.rs4
1 files changed, 4 insertions, 0 deletions
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
+            }
         }
     }
 }