diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2019-07-01 15:15:19 +0200 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2019-07-01 15:43:24 +0200 |
commit | bddfe9a4684cf6ffa68fb283a222ce14242553c8 (patch) | |
tree | 03b9517e6b6b649b90c0ab877e3e3d8765365408 /components/gfx/text | |
parent | d1efad676301798756c36990de8aa2784dab91db (diff) | |
download | servo-bddfe9a4684cf6ffa68fb283a222ce14242553c8.tar.gz servo-bddfe9a4684cf6ffa68fb283a222ce14242553c8.zip |
Remove `default-except-unstable`
… and use remaining unstable features unconditionally.
This doesn’t actually change the set of crates that can build on the Stable channel.
Diffstat (limited to 'components/gfx/text')
-rw-r--r-- | components/gfx/text/glyph.rs | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/components/gfx/text/glyph.rs b/components/gfx/text/glyph.rs index fc054c3caa3..82d002e61f4 100644 --- a/components/gfx/text/glyph.rs +++ b/components/gfx/text/glyph.rs @@ -4,10 +4,7 @@ use app_units::Au; use euclid::Point2D; -#[cfg(all( - feature = "unstable", - any(target_feature = "sse2", target_feature = "neon") -))] +#[cfg(any(target_feature = "sse2", target_feature = "neon"))] use packed_simd::u32x4; use range::{self, EachIndex, Range, RangeIndex}; use std::cmp::{Ordering, PartialOrd}; @@ -75,7 +72,6 @@ pub type GlyphId = u32; // TODO: make this more type-safe. const FLAG_CHAR_IS_SPACE: u32 = 0x40000000; -#[cfg(feature = "unstable")] #[cfg(any(target_feature = "sse2", target_feature = "neon"))] const FLAG_CHAR_IS_SPACE_SHIFT: u32 = 30; const FLAG_IS_SIMPLE_GLYPH: u32 = 0x80000000; @@ -625,7 +621,6 @@ impl<'a> GlyphStore { } #[inline] - #[cfg(feature = "unstable")] #[cfg(any(target_feature = "sse2", target_feature = "neon"))] fn advance_for_byte_range_simple_glyphs( &self, @@ -672,10 +667,7 @@ impl<'a> GlyphStore { /// When SIMD isn't available, fallback to the slow path. #[inline] - #[cfg(not(all( - feature = "unstable", - any(target_feature = "sse2", target_feature = "neon") - )))] + #[cfg(not(any(target_feature = "sse2", target_feature = "neon")))] fn advance_for_byte_range_simple_glyphs( &self, range: &Range<ByteIndex>, @@ -686,7 +678,6 @@ impl<'a> GlyphStore { /// Used for SIMD. #[inline] - #[cfg(feature = "unstable")] #[cfg(any(target_feature = "sse2", target_feature = "neon"))] #[allow(unsafe_code)] fn transmute_entry_buffer_to_u32_buffer(&self) -> &[u32] { |