Auto merge of #17270 - emilio:bindgen-does-bitfields-sort-of, r=wafflespeanut

stylo: Use bitfield accessors in string-cache.

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/17270)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2017-06-11 10:31:00 -07:00 committed by GitHub
commit 03074f4b0e

View file

@ -148,11 +148,8 @@ impl WeakAtom {
/// Returns whether this atom is static.
#[inline]
pub fn is_static(&self) -> bool {
// FIXME(emilio): re-introduce bitfield accessors:
//
// https://github.com/servo/rust-bindgen/issues/519
unsafe {
((*self.as_ptr())._bitfield_1 & (0x80000000 as u32)) != 0
(*self.as_ptr()).mIsStatic() != 0
}
}