diff options
| author | pravic <[email protected]> | 2016-04-29 21:16:15 +0300 |
|---|---|---|
| committer | pravic <[email protected]> | 2016-04-29 21:16:15 +0300 |
| commit | 77e9a3167b4aaadf3583a0c1d1ee0d9e63c9a000 (patch) | |
| tree | 710e445d56a1a582b8eff19b7b4b180276eae122 /libcore/clone.rs | |
| parent | tweak: /driver option specifies /fixed:no implicitly as well (diff) | |
| download | kmd-env-rs-77e9a3167b4aaadf3583a0c1d1ee0d9e63c9a000.tar.xz kmd-env-rs-77e9a3167b4aaadf3583a0c1d1ee0d9e63c9a000.zip | |
update libcore to 2016-04-29 nightly
Diffstat (limited to 'libcore/clone.rs')
| -rw-r--r-- | libcore/clone.rs | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/libcore/clone.rs b/libcore/clone.rs index 6fb733f..ad2a205 100644 --- a/libcore/clone.rs +++ b/libcore/clone.rs @@ -75,6 +75,17 @@ pub trait Clone : Sized { } } +// FIXME(aburka): this method is used solely by #[derive] to +// assert that every component of a type implements Clone. +// +// This should never be called by user code. +#[doc(hidden)] +#[inline(always)] +#[unstable(feature = "derive_clone_copy", + reason = "deriving hack, should not be public", + issue = "0")] +pub fn assert_receiver_is_clone<T: Clone + ?Sized>(_: &T) {} + #[stable(feature = "rust1", since = "1.0.0")] impl<'a, T: ?Sized> Clone for &'a T { /// Returns a shallow copy of the reference. @@ -105,9 +116,7 @@ clone_impl! { u16 } clone_impl! { u32 } clone_impl! { u64 } -#[cfg(not(disable_float))] clone_impl! { f32 } -#[cfg(not(disable_float))] clone_impl! { f64 } clone_impl! { () } |