Skip to content

Commit

Permalink
inlines contains in bitflags!
Browse files Browse the repository at this point in the history
Closes #17210
  • Loading branch information
Felix Raimundo committed Sep 14, 2014
1 parent 21d1f4d commit 06e85fd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libstd/bitflags.rs
Expand Up @@ -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
}
Expand Down

5 comments on commit 06e85fd

@bors
Copy link
Contributor

@bors bors commented on 06e85fd Sep 17, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from alexcrichton
at gamazeps@06e85fd

@bors
Copy link
Contributor

@bors bors commented on 06e85fd Sep 17, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging gamazeps/rust/issue17210 = 06e85fd into auto

@bors
Copy link
Contributor

@bors bors commented on 06e85fd Sep 17, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gamazeps/rust/issue17210 = 06e85fd merged ok, testing candidate = aac078d

@bors
Copy link
Contributor

@bors bors commented on 06e85fd Sep 17, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on 06e85fd Sep 17, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = aac078d

Please sign in to comment.