From 06e85fd1e2c337ba6fa760e0195bd05c855e4b60 Mon Sep 17 00:00:00 2001 From: Felix Raimundo Date: Sun, 14 Sep 2014 20:07:45 +0200 Subject: [PATCH] inlines contains in bitflags! Closes #17210 --- src/libstd/bitflags.rs | 1 + 1 file changed, 1 insertion(+) 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 }