Make usage of unstable feature on_unimplemented optional.

This commit is contained in:
Simon Sapin 2017-10-14 18:57:28 +02:00
parent 5a5b7d7f39
commit bffec1c1a1
4 changed files with 5 additions and 2 deletions

View file

@ -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