Implement has_dtor method in TypeContents

This commit is contained in:
Flavio Percoco 2014-01-19 15:13:00 +01:00
parent 4cb3bd558f
commit a22539b083

View file

@ -2012,6 +2012,10 @@ impl TypeContents {
pub fn inverse(&self) -> TypeContents {
TypeContents { bits: !self.bits }
}
pub fn has_dtor(&self) -> bool {
self.intersects(TC::OwnsDtor)
}
}
impl ops::BitOr<TypeContents,TypeContents> for TypeContents {