From cb04ef933be18e4f5cd7c4b3b36211febd876333 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Sun, 11 Jun 2017 18:39:25 +0200 Subject: [PATCH] stylo: Use bitfield accessors in string-cache. --- components/style/gecko_string_cache/mod.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/components/style/gecko_string_cache/mod.rs b/components/style/gecko_string_cache/mod.rs index 4973428f1e8..79c4ef02138 100644 --- a/components/style/gecko_string_cache/mod.rs +++ b/components/style/gecko_string_cache/mod.rs @@ -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 } }