From b1d2a91f3260b5ee045310f4eb28abd2c62773e1 Mon Sep 17 00:00:00 2001 From: Marco Neumann Date: Sun, 15 Jul 2018 17:37:46 +0200 Subject: [PATCH] impl PartialEq+Eq for BuildHasherDefault --- src/libcore/hash/mod.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/libcore/hash/mod.rs b/src/libcore/hash/mod.rs index e6f8dfffd63..e7907e03444 100644 --- a/src/libcore/hash/mod.rs +++ b/src/libcore/hash/mod.rs @@ -542,6 +542,16 @@ fn default() -> BuildHasherDefault { } } +#[stable(since = "1.29.0", feature = "build_hasher_eq")] +impl PartialEq for BuildHasherDefault { + fn eq(&self, _other: &BuildHasherDefault) -> bool { + true + } +} + +#[stable(since = "1.29.0", feature = "build_hasher_eq")] +impl Eq for BuildHasherDefault {} + ////////////////////////////////////////////////////////////////////////////// mod impls {