void-packages/srcpkgs/cargo/patches/nonexhaustive.patch

15 lines
489 B
Diff
Raw Normal View History

2017-10-17 15:55:52 +00:00
Without this patch, cargo fails to build in rust 1.20 due to:
error[E0004]: non-exhaustive patterns: `&__Nonexhaustive { }` not covered
--- src/cargo/util/errors.rs.orig
+++ src/cargo/util/errors.rs
@@ -83,7 +83,7 @@
&CargoErrorKind::Parse(_) |
&CargoErrorKind::Git(_) |
&CargoErrorKind::Internal(_) |
- &CargoErrorKind::CargoTestErrorKind(_) => false
+ &CargoErrorKind::CargoTestErrorKind(_) | _ => false
}
}
}