aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/task.rs
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2019-07-01 15:15:19 +0200
committerSimon Sapin <simon.sapin@exyr.org>2019-07-01 15:43:24 +0200
commitbddfe9a4684cf6ffa68fb283a222ce14242553c8 (patch)
tree03b9517e6b6b649b90c0ab877e3e3d8765365408 /components/script/task.rs
parentd1efad676301798756c36990de8aa2784dab91db (diff)
downloadservo-bddfe9a4684cf6ffa68fb283a222ce14242553c8.tar.gz
servo-bddfe9a4684cf6ffa68fb283a222ce14242553c8.zip
Remove `default-except-unstable`
… and use remaining unstable features unconditionally. This doesn’t actually change the set of crates that can build on the Stable channel.
Diffstat (limited to 'components/script/task.rs')
-rw-r--r--components/script/task.rs9
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);