We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 492714c commit e76cde9Copy full SHA for e76cde9
src/ir/context.rs
@@ -1867,7 +1867,9 @@ impl<'ctx> BindgenContext<'ctx> {
1867
/// Compute whether we can derive hash.
1868
fn compute_cannot_derive_partialeq(&mut self) {
1869
assert!(self.cannot_derive_partialeq.is_none());
1870
- self.cannot_derive_partialeq = Some(analyze::<CannotDerivePartialEq>(self));
+ if self.options.derive_partialeq {
1871
+ self.cannot_derive_partialeq = Some(analyze::<CannotDerivePartialEq>(self));
1872
+ }
1873
}
1874
1875
/// Look up whether the item with `id` can
0 commit comments