diff options
Diffstat (limited to 'components/script/task.rs')
-rw-r--r-- | components/script/task.rs | 9 |
1 files changed, 1 insertions, 8 deletions
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); |