servo: Merge #17270 - stylo: Use bitfield accessors in string-cache (from emilio:bindgen-does-bitfields-sort-of); r=wafflespeanut

Source-Repo: https://github.com/servo/servo
Source-Revision: 03074f4b0e9908d80558efe519301f39aadc436e

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 7d3d3be92df34988f095e78bd9233154e49da6c5
This commit is contained in:
Emilio Cobos Álvarez 2017-06-11 10:31:00 -07:00
parent 8e8d2ffd5f
commit 99357f53e9

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
}
}