diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2012-08-27 14:08:37 -0700 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2012-08-27 14:27:43 -0700 |
| commit | 3a1582012eafb8b672e15b12b5424e72ea6096af (patch) | |
| tree | 497372d0ae35fa35b4f0f3360a51078330760249 /src/libcore | |
| parent | 2bb056f4ab416b08a499b2229a3cca6404ce3c54 (diff) | |
| download | rust-3a1582012eafb8b672e15b12b5424e72ea6096af.tar.gz rust-3a1582012eafb8b672e15b12b5424e72ea6096af.zip | |
libcore: Implement ord and eq language items
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/cmp.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libcore/cmp.rs b/src/libcore/cmp.rs index b7b32722a10..8ccfb6dd1f4 100644 --- a/src/libcore/cmp.rs +++ b/src/libcore/cmp.rs @@ -4,10 +4,14 @@ /// Interfaces used for comparison. +#[cfg(notest)] +#[lang="ord"] trait Ord { pure fn lt(&&other: self) -> bool; } +#[cfg(notest)] +#[lang="eq"] trait Eq { pure fn eq(&&other: self) -> bool; } |
