about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2014-09-18 11:08:04 -0400
committerNiko Matsakis <niko@alum.mit.edu>2014-09-25 07:06:27 -0400
commiteffb3636cc416ae81450e857352b832a86d5dd44 (patch)
treea672f3579167efd48b6b8b5673fa241542814fd9 /src/libcore
parentd299bafb31a7c0528e690e48ec6d5591f1eb0bac (diff)
downloadrust-effb3636cc416ae81450e857352b832a86d5dd44.tar.gz
rust-effb3636cc416ae81450e857352b832a86d5dd44.zip
Integrate builtin bounds fully into the trait checker
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/kinds.rs8
1 files changed, 4 insertions, 4 deletions
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
 }