mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-11-25 16:25:31 +00:00
Fix swapped union/intersection for extensions (#2249)
This commit is contained in:
parent
a7370c9ca7
commit
fb3c53d7ad
@ -628,14 +628,14 @@ fn extensions_common_output(struct_name: Ident, members: &[ExtensionsMember]) ->
|
||||
|
||||
#[inline]
|
||||
fn bitand(self, rhs: Self) -> Self::Output {
|
||||
self.union(&rhs)
|
||||
self.intersection(&rhs)
|
||||
}
|
||||
}
|
||||
|
||||
impl std::ops::BitAndAssign for #struct_name {
|
||||
#[inline]
|
||||
fn bitand_assign(&mut self, rhs: Self) {
|
||||
*self = self.union(&rhs);
|
||||
*self = self.intersection(&rhs);
|
||||
}
|
||||
}
|
||||
|
||||
@ -644,14 +644,14 @@ fn extensions_common_output(struct_name: Ident, members: &[ExtensionsMember]) ->
|
||||
|
||||
#[inline]
|
||||
fn bitor(self, rhs: Self) -> Self::Output {
|
||||
self.intersection(&rhs)
|
||||
self.union(&rhs)
|
||||
}
|
||||
}
|
||||
|
||||
impl std::ops::BitOrAssign for #struct_name {
|
||||
#[inline]
|
||||
fn bitor_assign(&mut self, rhs: Self) {
|
||||
*self = self.intersection(&rhs);
|
||||
*self = self.union(&rhs);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user