aboutsummaryrefslogtreecommitdiffstats
path: root/components/script
diff options
context:
space:
mode:
Diffstat (limited to 'components/script')
-rw-r--r--components/script/Cargo.toml1
-rw-r--r--components/script/dom/bindings/conversions.rs3
-rw-r--r--components/script/lib.rs2
3 files changed, 4 insertions, 2 deletions
diff --git a/components/script/Cargo.toml b/components/script/Cargo.toml
index 703f9881b46..bfed1323d57 100644
--- a/components/script/Cargo.toml
+++ b/components/script/Cargo.toml
@@ -13,6 +13,7 @@ path = "lib.rs"
[features]
debugmozjs = ['js/debugmozjs']
+unstable = []
[build-dependencies]
cmake = "0.1"
diff --git a/components/script/dom/bindings/conversions.rs b/components/script/dom/bindings/conversions.rs
index 665a29efb3c..e27813d20f9 100644
--- a/components/script/dom/bindings/conversions.rs
+++ b/components/script/dom/bindings/conversions.rs
@@ -67,7 +67,8 @@ pub trait IDLInterface {
}
/// A trait to mark an IDL interface as deriving from another one.
-#[rustc_on_unimplemented = "The IDL interface `{Self}` is not derived from `{T}`."]
+#[cfg_attr(feature = "unstable",
+ rustc_on_unimplemented = "The IDL interface `{Self}` is not derived from `{T}`.")]
pub trait DerivedFrom<T: Castable>: Castable {}
// https://heycam.github.io/webidl/#es-object
diff --git a/components/script/lib.rs b/components/script/lib.rs
index fcb68e2420e..28f4181b934 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 http://mozilla.org/MPL/2.0/. */
+#![cfg_attr(feature = "unstable", feature(on_unimplemented))]
#![feature(conservative_impl_trait)]
#![feature(const_fn)]
#![feature(core_intrinsics)]
#![feature(mpsc_select)]
-#![feature(on_unimplemented)]
#![feature(plugin)]
#![feature(proc_macro)]