From effb3636cc416ae81450e857352b832a86d5dd44 Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Thu, 18 Sep 2014 11:08:04 -0400 Subject: Integrate builtin bounds fully into the trait checker --- src/libcore/kinds.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/libcore') diff --git a/src/libcore/kinds.rs b/src/libcore/kinds.rs index 0a1334e5d13..b0206e73e47 100644 --- a/src/libcore/kinds.rs +++ b/src/libcore/kinds.rs @@ -25,19 +25,19 @@ pub use self::Sync as Share; /// Types able to be transferred across task boundaries. #[lang="send"] -pub trait Send { +pub trait Send for Sized? { // empty. } /// Types with a constant size known at compile-time. #[lang="sized"] -pub trait Sized { +pub trait Sized for Sized? { // Empty. } /// Types that can be copied by simply copying bits (i.e. `memcpy`). #[lang="copy"] -pub trait Copy { +pub trait Copy for Sized? { // Empty. } @@ -87,7 +87,7 @@ pub trait Copy { /// reference; not doing this is undefined behaviour (for example, /// `transmute`-ing from `&T` to `&mut T` is illegal). #[lang="sync"] -pub trait Sync { +pub trait Sync for Sized? { // Empty } -- cgit 1.4.1-3-g733a5