diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs index 6bba0824270..ec72c125d27 100644 --- a/components/script/script_thread.rs +++ b/components/script/script_thread.rs @@ -102,6 +102,7 @@ use servo_url::{ImmutableOrigin, MutableOrigin, ServoUrl}; use std::cell::Cell; use std::collections::{hash_map, HashMap, HashSet}; use std::default::Default; +use std::intrinsics; use std::ops::Deref; use std::option::Option; use std::ptr; @@ -221,7 +222,7 @@ pub struct CancellableRunnable { } impl Runnable for CancellableRunnable { - fn name(&self) -> &'static str { self.inner.name() } + fn name(&self) -> &'static str { unsafe { intrinsics::type_name::() } } fn is_cancelled(&self) -> bool { self.cancelled.as_ref()