mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
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:
commit
03074f4b0e
1 changed files with 1 additions and 4 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue