diff options
-rw-r--r-- | components/gfx/Cargo.toml | 5 | ||||
-rw-r--r-- | components/gfx/text/glyph.rs | 13 | ||||
-rw-r--r-- | components/layout_thread/Cargo.toml | 5 | ||||
-rw-r--r-- | components/script/Cargo.toml | 1 | ||||
-rw-r--r-- | components/script/dom/bindings/conversions.rs | 5 | ||||
-rw-r--r-- | components/script/dom/bindings/root.rs | 14 | ||||
-rw-r--r-- | components/script/dom/window.rs | 5 | ||||
-rw-r--r-- | components/script/lib.rs | 4 | ||||
-rw-r--r-- | components/script/task.rs | 9 | ||||
-rw-r--r-- | components/servo/Cargo.toml | 3 | ||||
-rw-r--r-- | etc/taskcluster/decision_task.py | 1 | ||||
-rw-r--r-- | ports/glutin/Cargo.toml | 4 | ||||
-rw-r--r-- | ports/glutin/main.rs | 2 | ||||
-rw-r--r-- | ports/glutin/main2.rs | 9 | ||||
-rw-r--r-- | ports/libsimpleservo/api/Cargo.toml | 4 | ||||
-rw-r--r-- | ports/libsimpleservo/capi/Cargo.toml | 4 | ||||
-rw-r--r-- | ports/libsimpleservo/jniapi/Cargo.toml | 4 |
17 files changed, 24 insertions, 68 deletions
diff --git a/components/gfx/Cargo.toml b/components/gfx/Cargo.toml index 3818a2f30a6..a95fb6d1046 100644 --- a/components/gfx/Cargo.toml +++ b/components/gfx/Cargo.toml @@ -13,9 +13,6 @@ path = "lib.rs" test = false doctest = false -[features] -unstable = ["packed_simd"] - [dependencies] app_units = "0.7" bitflags = "1.0" @@ -31,7 +28,7 @@ log = "0.4" malloc_size_of = { path = "../malloc_size_of" } net_traits = {path = "../net_traits"} ordered-float = "1.0" -packed_simd = {version = "0.3", optional = true} +packed_simd = "0.3" range = {path = "../range"} serde = "1.0" servo_arc = {path = "../servo_arc"} 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] { diff --git a/components/layout_thread/Cargo.toml b/components/layout_thread/Cargo.toml index 8c98a809c1a..9ae8a6f953d 100644 --- a/components/layout_thread/Cargo.toml +++ b/components/layout_thread/Cargo.toml @@ -10,9 +10,6 @@ publish = false name = "layout_thread" path = "lib.rs" -[features] -unstable = ["parking_lot/nightly"] - [dependencies] app_units = "0.7" atomic_refcell = "0.1" @@ -36,7 +33,7 @@ malloc_size_of = { path = "../malloc_size_of" } metrics = {path = "../metrics"} msg = {path = "../msg"} net_traits = {path = "../net_traits"} -parking_lot = "0.8" +parking_lot = {version = "0.8", features = ["nightly"]} profile_traits = {path = "../profile_traits"} range = {path = "../range"} rayon = "1" diff --git a/components/script/Cargo.toml b/components/script/Cargo.toml index deeb5f7a3bf..1b9dade72eb 100644 --- a/components/script/Cargo.toml +++ b/components/script/Cargo.toml @@ -15,7 +15,6 @@ path = "lib.rs" [features] debugmozjs = ['js/debugmozjs'] profilemozjs = ['js/profilemozjs'] -unstable = [] unrooted_must_root_lint = ["script_plugins/unrooted_must_root_lint"] webidl_lint = ["script_plugins/webidl_lint"] default = ["unrooted_must_root_lint", "webidl_lint"] diff --git a/components/script/dom/bindings/conversions.rs b/components/script/dom/bindings/conversions.rs index 161354479b6..442648fb9c8 100644 --- a/components/script/dom/bindings/conversions.rs +++ b/components/script/dom/bindings/conversions.rs @@ -69,10 +69,7 @@ pub trait IDLInterface { } /// A trait to mark an IDL interface as deriving from another one. -#[cfg_attr( - feature = "unstable", - rustc_on_unimplemented(message = "The IDL interface `{Self}` is not derived from `{T}`.") -)] +#[rustc_on_unimplemented(message = "The IDL interface `{Self}` is not derived from `{T}`.")] pub trait DerivedFrom<T: Castable>: Castable {} impl<T: Float + ToJSValConvertible> ToJSValConvertible for Finite<T> { diff --git a/components/script/dom/bindings/root.rs b/components/script/dom/bindings/root.rs index 228015b1275..c87c83a2469 100644 --- a/components/script/dom/bindings/root.rs +++ b/components/script/dom/bindings/root.rs @@ -330,13 +330,13 @@ impl<T: DomObject> Deref for Dom<T> { unsafe impl<T: DomObject> JSTraceable for Dom<T> { unsafe fn trace(&self, trc: *mut JSTracer) { - #[cfg(all(feature = "unstable", debug_assertions))] - let trace_str = format!("for {} on heap", ::std::intrinsics::type_name::<T>()); - #[cfg(all(feature = "unstable", debug_assertions))] - let trace_info = &trace_str[..]; - #[cfg(not(all(feature = "unstable", debug_assertions)))] - let trace_info = "for DOM object on heap"; - + let trace_string; + let trace_info = if cfg!(debug_assertions) { + trace_string = format!("for {} on heap", ::std::intrinsics::type_name::<T>()); + &trace_string[..] + } else { + "for DOM object on heap" + }; trace_reflector(trc, trace_info, (*self.ptr.as_ptr()).reflector()); } } diff --git a/components/script/dom/window.rs b/components/script/dom/window.rs index a1afdc34a82..596fd711599 100644 --- a/components/script/dom/window.rs +++ b/components/script/dom/window.rs @@ -938,10 +938,7 @@ impl WindowMethods for Window { #[allow(unsafe_code)] fn Trap(&self) { - #[cfg(feature = "unstable")] - unsafe { - ::std::intrinsics::breakpoint() - } + unsafe { ::std::intrinsics::breakpoint() } } #[allow(unsafe_code)] diff --git a/components/script/lib.rs b/components/script/lib.rs index 9bc2d929b13..1be386dfd1c 100644 --- a/components/script/lib.rs +++ b/components/script/lib.rs @@ -2,11 +2,11 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ -#![cfg_attr(feature = "unstable", feature(core_intrinsics))] -#![cfg_attr(feature = "unstable", feature(on_unimplemented))] #![feature(const_fn)] +#![feature(core_intrinsics)] #![feature(drain_filter)] #![feature(inner_deref)] +#![feature(on_unimplemented)] #![feature(plugin)] #![feature(type_alias_enum_variants)] #![deny(unsafe_code)] diff --git a/components/script/task.rs b/components/script/task.rs index c8b4b438deb..61f9bf436dd 100644 --- a/components/script/task.rs +++ b/components/script/task.rs @@ -32,14 +32,7 @@ macro_rules! task { pub trait TaskOnce: Send { #[allow(unsafe_code)] fn name(&self) -> &'static str { - #[cfg(feature = "unstable")] - unsafe { - ::std::intrinsics::type_name::<Self>() - } - #[cfg(not(feature = "unstable"))] - { - "(task name unknown)" - } + unsafe { ::std::intrinsics::type_name::<Self>() } } fn run_once(self); diff --git a/components/servo/Cargo.toml b/components/servo/Cargo.toml index f4feaab5be5..86189c78f6b 100644 --- a/components/servo/Cargo.toml +++ b/components/servo/Cargo.toml @@ -26,9 +26,6 @@ uwp = ["servo_config/uwp"] webrender_debugger = ["webrender/debugger"] no_static_freetype = ["webrender/no_static_freetype"] oculusvr = ["webvr/oculusvr"] -unstable = [ - "script/unstable", -] webdriver = ["webdriver_server"] webgl_backtrace = [ "script/webgl_backtrace", diff --git a/etc/taskcluster/decision_task.py b/etc/taskcluster/decision_task.py index e8e6479c052..74aedd06688 100644 --- a/etc/taskcluster/decision_task.py +++ b/etc/taskcluster/decision_task.py @@ -185,7 +185,6 @@ def linux_tidy_unit_docs(): ./mach package --dev ./mach build --dev --features raqote_backend ./mach build --dev --libsimpleservo - ./mach build --dev --no-default-features --features default-except-unstable ./mach test-tidy --no-progress --self-test ./etc/memory_reports_over_time.py --test diff --git a/ports/glutin/Cargo.toml b/ports/glutin/Cargo.toml index 2a6f1302d22..0caa2a1dede 100644 --- a/ports/glutin/Cargo.toml +++ b/ports/glutin/Cargo.toml @@ -28,8 +28,7 @@ ProductName = "Servo" [features] azure_backend = ["libservo/azure_backend"] -default = ["unstable", "default-except-unstable"] -default-except-unstable = ["webdriver", "max_log_level"] +default = ["webdriver", "max_log_level"] energy-profiling = ["libservo/energy-profiling"] debugmozjs = ["libservo/debugmozjs"] js_backtrace = ["libservo/js_backtrace"] @@ -37,7 +36,6 @@ max_log_level = ["log/release_max_level_info"] native-bluetooth = ["libservo/native-bluetooth"] profilemozjs = ["libservo/profilemozjs"] raqote_backend = ["libservo/raqote_backend"] -unstable = ["libservo/unstable"] webdriver = ["libservo/webdriver"] webgl_backtrace = ["libservo/webgl_backtrace"] webrender_debugger = ["libservo/webrender_debugger"] diff --git a/ports/glutin/main.rs b/ports/glutin/main.rs index 23be648bad8..50da58121bc 100644 --- a/ports/glutin/main.rs +++ b/ports/glutin/main.rs @@ -15,7 +15,7 @@ //! //! [glutin]: https://github.com/tomaka/glutin -#![cfg_attr(feature = "unstable", feature(core_intrinsics))] +#![feature(core_intrinsics)] #[cfg(not(target_os = "android"))] include!("main2.rs"); diff --git a/ports/glutin/main2.rs b/ports/glutin/main2.rs index 496c0515e19..579c97d3a23 100644 --- a/ports/glutin/main2.rs +++ b/ports/glutin/main2.rs @@ -6,7 +6,7 @@ extern crate lazy_static; #[macro_use] extern crate log; -#[cfg(all(feature = "unstable", any(target_os = "macos", target_os = "linux")))] +#[cfg(any(target_os = "macos", target_os = "linux"))] #[macro_use] extern crate sig; @@ -42,13 +42,10 @@ pub mod platform { pub fn deinit() {} } -#[cfg(any( - not(feature = "unstable"), - not(any(target_os = "macos", target_os = "linux")) -))] +#[cfg(not(any(target_os = "macos", target_os = "linux")))] fn install_crash_handler() {} -#[cfg(all(feature = "unstable", any(target_os = "macos", target_os = "linux")))] +#[cfg(any(target_os = "macos", target_os = "linux"))] fn install_crash_handler() { use backtrace::Backtrace; use libc::_exit; diff --git a/ports/libsimpleservo/api/Cargo.toml b/ports/libsimpleservo/api/Cargo.toml index 8e1726a8b02..6d618d14b14 100644 --- a/ports/libsimpleservo/api/Cargo.toml +++ b/ports/libsimpleservo/api/Cargo.toml @@ -27,8 +27,7 @@ gl_generator = "0.11" [features] azure_backend = ["libservo/azure_backend"] -default = ["unstable", "default-except-unstable"] -default-except-unstable = ["webdriver", "max_log_level"] +default = ["webdriver", "max_log_level"] debugmozjs = ["libservo/debugmozjs"] energy-profiling = ["libservo/energy-profiling"] googlevr = ["libservo/googlevr"] @@ -40,6 +39,5 @@ no_wgl = ["libservo/no_wgl"] oculusvr = ["libservo/oculusvr"] raqote_backend = ["libservo/raqote_backend"] webdriver = ["libservo/webdriver"] -unstable = ["libservo/unstable"] uwp = ["libservo/uwp"] webgl_backtrace = ["libservo/webgl_backtrace"] diff --git a/ports/libsimpleservo/capi/Cargo.toml b/ports/libsimpleservo/capi/Cargo.toml index 1ca469d82c0..2e4a894e4f5 100644 --- a/ports/libsimpleservo/capi/Cargo.toml +++ b/ports/libsimpleservo/capi/Cargo.toml @@ -23,8 +23,7 @@ cbindgen = "0.8" [features] azure_backend = ["simpleservo/azure_backend"] debugmozjs = ["simpleservo/debugmozjs"] -default = ["unstable", "default-except-unstable"] -default-except-unstable = ["webdriver", "max_log_level"] +default = ["webdriver", "max_log_level"] energy-profiling = ["simpleservo/energy-profiling"] googlevr = ["simpleservo/googlevr"] js_backtrace = ["simpleservo/js_backtrace"] @@ -33,7 +32,6 @@ native-bluetooth = ["simpleservo/native-bluetooth"] no_wgl = ["simpleservo/no_wgl"] oculusvr = ["simpleservo/oculusvr"] raqote_backend = ["simpleservo/raqote_backend"] -unstable = ["simpleservo/unstable"] uwp = ["simpleservo/uwp"] webdriver = ["simpleservo/webdriver"] webgl_backtrace = ["simpleservo/webgl_backtrace"] diff --git a/ports/libsimpleservo/jniapi/Cargo.toml b/ports/libsimpleservo/jniapi/Cargo.toml index 95a841770a0..5804832dd39 100644 --- a/ports/libsimpleservo/jniapi/Cargo.toml +++ b/ports/libsimpleservo/jniapi/Cargo.toml @@ -28,8 +28,7 @@ cc = "1.0" [features] azure_backend = ["simpleservo/azure_backend"] debugmozjs = ["simpleservo/debugmozjs"] -default = ["unstable", "default-except-unstable"] -default-except-unstable = ["webdriver", "max_log_level"] +default = ["webdriver", "max_log_level"] energy-profiling = ["simpleservo/energy-profiling"] googlevr = ["simpleservo/googlevr"] js_backtrace = ["simpleservo/js_backtrace"] @@ -37,6 +36,5 @@ max_log_level = ["simpleservo/max_log_level"] native-bluetooth = ["simpleservo/native-bluetooth"] oculusvr = ["simpleservo/oculusvr"] raqote_backend = ["simpleservo/raqote_backend"] -unstable = ["simpleservo/unstable"] webdriver = ["simpleservo/webdriver"] webgl_backtrace = ["simpleservo/webgl_backtrace"] |