Auto merge of #50930 - toidiu:ak-ordOutlivesPredicate, r=nikomatsakis

implement Ord for OutlivesPredicate and other types

It became necessary while implementing https://github.com/rust-lang/rust/pull/50070 to have `Ord` implemented for `OutlivesPredicate`.

This PR implements `Ord` for `OutlivesPredicate` as well as other types needed for the implementation.
This commit is contained in:
bors
2018-05-24 14:30:58 +00:00
11 changed files with 100 additions and 34 deletions

View File

@@ -667,7 +667,7 @@ pub enum PatKind {
Mac(Mac),
}
#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug, Copy)]
#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, RustcEncodable, RustcDecodable, Hash, Debug, Copy)]
pub enum Mutability {
Mutable,
Immutable,