We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 451a043 + 6963df3 commit d38f20dCopy full SHA for d38f20d
src/cargo/util/flock.rs
@@ -374,7 +374,10 @@ mod sys {
374
375
pub(super) fn error_unsupported(err: &Error) -> bool {
376
match err.raw_os_error() {
377
- Some(libc::ENOTSUP) => true,
+ // Unfortunately, depending on the target, these may or may not be the same.
378
+ // For targets in which they are the same, the duplicate pattern causes a warning.
379
+ #[allow(unreachable_patterns)]
380
+ Some(libc::ENOTSUP | libc::EOPNOTSUPP) => true,
381
#[cfg(target_os = "linux")]
382
Some(libc::ENOSYS) => true,
383
_ => false,
0 commit comments