auto merge of #17254 : gamazeps/rust/issue17210, r=alexcrichton

Closes #17210
This commit is contained in:
bors 2014-09-17 12:06:22 +00:00
commit aac078dca5

View File

@ -170,6 +170,7 @@ macro_rules! bitflags {
}
/// Returns `true` all of the flags in `other` are contained within `self`.
#[inline]
pub fn contains(&self, other: $BitFlags) -> bool {
(self & other) == other
}