diff --git a/src/libstd/bitflags.rs b/src/libstd/bitflags.rs index 3d1bc20cca49e..8af88b4fe7247 100644 --- a/src/libstd/bitflags.rs +++ b/src/libstd/bitflags.rs @@ -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 }