From a9f2a502067011a941bff512a7615080715d3bfc Mon Sep 17 00:00:00 2001 From: Bryant Mairs Date: Wed, 23 Jan 2019 07:25:47 -0800 Subject: [PATCH] Enable check that Hash and PartialEq impls aren't different This is a crude check, just seeing if Hash is derived and PartialEq is not, but it's at least something. --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index 2300e823e9672..6cd82cd99d6ba 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -158,6 +158,7 @@ #![cfg_attr(not(any(feature = "use_std", feature = "rustc-dep-of-std")), no_std)] // Enable lints #![cfg_attr(feature = "extra_traits", deny(missing_debug_implementations))] +#![cfg_attr(feature = "extra_traits", deny(clippy::derive_hash_xor_eq))] #![deny(missing_copy_implementations)] #[cfg(all(not(cross_platform_docs), feature = "use_std"))]