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.
This commit is contained in:
Simon Sapin 2019-07-01 15:15:19 +02:00
parent d1efad6763
commit bddfe9a468
17 changed files with 24 additions and 68 deletions

View file

@ -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);