summaryrefslogtreecommitdiff
path: root/src/codegen/impl_partialeq.rs
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2018-03-10 07:15:10 +0100
committerEmilio Cobos Álvarez <emilio@crisal.io>2018-03-13 12:15:47 +0100
commitb91583f101eca2c80b9424968a0e68fefc3571af (patch)
tree42009e76893d941845326ee0c86580076e240607 /src/codegen/impl_partialeq.rs
parent96b26b308dbfb5acde0ede785dcbb7d276ef98f2 (diff)
Add a kill-switch for untagged unions.
Otherwise we can't use repr(align) on stylo.
Diffstat (limited to 'src/codegen/impl_partialeq.rs')
-rw-r--r--src/codegen/impl_partialeq.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codegen/impl_partialeq.rs b/src/codegen/impl_partialeq.rs
index 02783808..31c2c979 100644
--- a/src/codegen/impl_partialeq.rs
+++ b/src/codegen/impl_partialeq.rs
@@ -20,7 +20,7 @@ pub fn gen_partialeq_impl(
&self._bindgen_opaque_blob[..] == &other._bindgen_opaque_blob[..]
});
} else if comp_info.kind() == CompKind::Union {
- assert!(!ctx.options().rust_features().untagged_union());
+ assert!(!ctx.options().rust_features().untagged_union);
tokens.push(quote! {
&self.bindgen_union_field[..] == &other.bindgen_union_field[..]
});