aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--components/script/script_thread.rs3
1 files changed, 2 insertions, 1 deletions
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<T: Runnable + Send> {
}
impl<T: Runnable + Send> Runnable for CancellableRunnable<T> {
- fn name(&self) -> &'static str { self.inner.name() }
+ fn name(&self) -> &'static str { unsafe { intrinsics::type_name::<Self>() } }
fn is_cancelled(&self) -> bool {
self.cancelled.as_ref()