remove future-incompatible impl

for dyn CloneAny + Send (+Sync)
This commit is contained in:
Alex Janka 2024-08-10 15:14:14 +10:00
parent 2e9a570491
commit c70cb7def9

View file

@ -1,7 +1,7 @@
use core::fmt;
use core::any::{Any, TypeId};
#[cfg(not(feature = "std"))]
use alloc::boxed::Box;
use core::any::{Any, TypeId};
use core::fmt;
#[doc(hidden)]
pub trait CloneToAny {
@ -44,7 +44,7 @@ macro_rules! impl_clone {
f.pad(stringify!($t))
}
}
}
};
}
/// Methods for downcasting from an `Any`-like trait object.
@ -141,5 +141,3 @@ implement!(CloneAny);
implement!(CloneAny + Send);
implement!(CloneAny + Send + Sync);
impl_clone!(dyn CloneAny);
impl_clone!(dyn CloneAny + Send);
impl_clone!(dyn CloneAny + Send + Sync);