diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2021-09-01 09:23:25 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-01 09:23:25 +0200 |
| commit | 8fd53e30852fb0b241ed91e4effa549c88941778 (patch) | |
| tree | 6f7bbdd8505b2dc056d740b9f5fc871a6be06e68 /compiler/rustc_data_structures/src | |
| parent | 5878780e641239906a7a2986ccae048f7640be87 (diff) | |
| parent | 21f07b55df6e40191446db3414fc115f76c01580 (diff) | |
| download | rust-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.rs | 4 |
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 + } } } } |
