diff options
| author | Aaron Turon <aturon@mozilla.com> | 2014-12-30 14:44:26 -0800 |
|---|---|---|
| committer | Aaron Turon <aturon@mozilla.com> | 2014-12-30 14:44:26 -0800 |
| commit | b94bcbf56eab163517e8ffc93888284b8dbb6238 (patch) | |
| tree | 7a18c863cc94c86dd6ba2d9813af0d0af2b5b512 /src/rustllvm/RustWrapper.cpp | |
| parent | 84f5ad8679c7fc454473ffbf389030f3e5fee379 (diff) | |
| download | rust-b94bcbf56eab163517e8ffc93888284b8dbb6238.tar.gz rust-b94bcbf56eab163517e8ffc93888284b8dbb6238.zip | |
Stabilize cmp
This patch marks `PartialEq`, `Eq`, `PartialOrd`, and `Ord` as `#[stable]`, as well as the majorify of manual implementaitons of these traits. The traits match the [reform RFC](https://github.com/rust-lang/rfcs/pull/439). Along the way, two changes are made: * The recently-added type parameters for `Ord` and `Eq` are removed. These were mistakenly added while adding them to `PartialOrd` and `PartialEq`, but they don't make sense given the laws that are required for (and use cases for) `Ord` and `Eq`. * More explicit laws are added for `PartialEq` and `PartialOrd`, connecting them to their associated mathematical concepts. In the future, many of the impls should be generalized; see since generalizing later is not a breaking change. [breaking-change]
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
