summaryrefslogtreecommitdiff
path: root/src/codegen/mod.rs
diff options
context:
space:
mode:
authorJethro Beekman <jethro@fortanix.com>2019-03-21 00:15:20 -0700
committerJethro Beekman <jethro@fortanix.com>2019-03-21 22:04:35 -0700
commitfbc5da76a0b2715504d25506b4a80473eb25d405 (patch)
tree24c6802a68acbfe270fee8ff4ebd585a436b3a42 /src/codegen/mod.rs
parent843eb1c4c98468acd96a1f113af60ebb5a9af622 (diff)
Unify derive logic
Diffstat (limited to 'src/codegen/mod.rs')
-rw-r--r--src/codegen/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codegen/mod.rs b/src/codegen/mod.rs
index d7f98c13..0956eb7a 100644
--- a/src/codegen/mod.rs
+++ b/src/codegen/mod.rs
@@ -1746,7 +1746,7 @@ impl CodeGenerator for CompInfo {
needs_partialeq_impl =
ctx.options().derive_partialeq &&
ctx.options().impl_partialeq &&
- ctx.lookup_can_derive_partialeq_or_partialord(item.id()) == CanDerive::ArrayTooLarge;
+ ctx.lookup_can_derive_partialeq_or_partialord(item.id()) == CanDerive::Manually;
}
if item.can_derive_eq(ctx) {