about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorAaron Turon <aturon@mozilla.com>2014-12-30 14:44:26 -0800
committerAaron Turon <aturon@mozilla.com>2014-12-30 14:44:26 -0800
commitb94bcbf56eab163517e8ffc93888284b8dbb6238 (patch)
tree7a18c863cc94c86dd6ba2d9813af0d0af2b5b512 /src/rustllvm/RustWrapper.cpp
parent84f5ad8679c7fc454473ffbf389030f3e5fee379 (diff)
downloadrust-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