diff options
| author | Ben Blum <bblum@andrew.cmu.edu> | 2013-05-30 20:03:01 -0400 |
|---|---|---|
| committer | Ben Blum <bblum@andrew.cmu.edu> | 2013-05-30 21:41:41 -0400 |
| commit | b8a53b5a4cb594326ec90feb960d018e7ae23f2a (patch) | |
| tree | e73b2cfd23a80e2ed3ab4933cc7d716825c83ff3 /src/libstd | |
| parent | 237dce12c934287abd0bbe5a35309b1dc4f0d2c0 (diff) | |
| download | rust-b8a53b5a4cb594326ec90feb960d018e7ae23f2a.tar.gz rust-b8a53b5a4cb594326ec90feb960d018e7ae23f2a.zip | |
Add 'Sized' builtin kind; doesn't do anything yet
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/kinds.rs | 5 | ||||
| -rw-r--r-- | src/libstd/prelude.rs | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/libstd/kinds.rs b/src/libstd/kinds.rs index b6c22f29c3e..05c963a32cc 100644 --- a/src/libstd/kinds.rs +++ b/src/libstd/kinds.rs @@ -53,3 +53,8 @@ pub trait Owned { pub trait Const { // Empty. } + +#[lang="sized"] +pub trait Sized { + // Empty. +} diff --git a/src/libstd/prelude.rs b/src/libstd/prelude.rs index 07864ce419e..4dcef60781f 100644 --- a/src/libstd/prelude.rs +++ b/src/libstd/prelude.rs @@ -12,7 +12,7 @@ // Reexported core operators pub use either::{Either, Left, Right}; -pub use kinds::{Const, Copy, Owned}; +pub use kinds::{Const, Copy, Owned, Sized}; pub use ops::{Add, Sub, Mul, Div, Rem, Neg, Not}; pub use ops::{BitAnd, BitOr, BitXor}; pub use ops::{Drop}; |
