about summary refs log tree commit diff
path: root/compiler/rustc_data_structures/src
diff options
context:
space:
mode:
authorMara Bos <m-ou.se@m-ou.se>2021-09-01 09:23:25 +0200
committerGitHub <noreply@github.com>2021-09-01 09:23:25 +0200
commit8fd53e30852fb0b241ed91e4effa549c88941778 (patch)
tree6f7bbdd8505b2dc056d740b9f5fc871a6be06e68 /compiler/rustc_data_structures/src
parent5878780e641239906a7a2986ccae048f7640be87 (diff)
parent21f07b55df6e40191446db3414fc115f76c01580 (diff)
downloadrust-8fd53e30852fb0b241ed91e4effa549c88941778.tar.gz
rust-8fd53e30852fb0b241ed91e4effa549c88941778.zip
Rollup merge of #88053 - bjorn3:fix_flock_fallback_impl, r=cjgillot
Fix the flock fallback implementation
Diffstat (limited to 'compiler/rustc_data_structures/src')
-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
+            }
         }
     }
 }