remove future-incompatible impl
for dyn CloneAny + Send (+Sync)
This commit is contained in:
parent
2e9a570491
commit
c70cb7def9
|
@ -1,7 +1,7 @@
|
||||||
use core::fmt;
|
|
||||||
use core::any::{Any, TypeId};
|
|
||||||
#[cfg(not(feature = "std"))]
|
#[cfg(not(feature = "std"))]
|
||||||
use alloc::boxed::Box;
|
use alloc::boxed::Box;
|
||||||
|
use core::any::{Any, TypeId};
|
||||||
|
use core::fmt;
|
||||||
|
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
pub trait CloneToAny {
|
pub trait CloneToAny {
|
||||||
|
@ -44,7 +44,7 @@ macro_rules! impl_clone {
|
||||||
f.pad(stringify!($t))
|
f.pad(stringify!($t))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Methods for downcasting from an `Any`-like trait object.
|
/// Methods for downcasting from an `Any`-like trait object.
|
||||||
|
@ -141,5 +141,3 @@ implement!(CloneAny);
|
||||||
implement!(CloneAny + Send);
|
implement!(CloneAny + Send);
|
||||||
implement!(CloneAny + Send + Sync);
|
implement!(CloneAny + Send + Sync);
|
||||||
impl_clone!(dyn CloneAny);
|
impl_clone!(dyn CloneAny);
|
||||||
impl_clone!(dyn CloneAny + Send);
|
|
||||||
impl_clone!(dyn CloneAny + Send + Sync);
|
|
||||||
|
|
Loading…
Reference in a new issue