mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Make usage of unstable feature on_unimplemented optional.
This commit is contained in:
parent
5a5b7d7f39
commit
bffec1c1a1
4 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue