about summary refs log tree commit diff
path: root/src/libsyntax/ast.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-05-24 14:30:58 +0000
committerbors <bors@rust-lang.org>2018-05-24 14:30:58 +0000
commita41dd6fce2393b8701080f32aff187a6641e5853 (patch)
treed2a0c114f2930d92f1eb8c55859f9c685257e026 /src/libsyntax/ast.rs
parentd022dd48cceaceffa931f87490c7921aa3c3f8b1 (diff)
parent9a8400c3ffddfe642608c79b2f65b01d7416db2b (diff)
downloadrust-a41dd6fce2393b8701080f32aff187a6641e5853.tar.gz
rust-a41dd6fce2393b8701080f32aff187a6641e5853.zip
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.
Diffstat (limited to 'src/libsyntax/ast.rs')
-rw-r--r--src/libsyntax/ast.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs
index bd631379120..6ae1729295f 100644
--- a/src/libsyntax/ast.rs
+++ b/src/libsyntax/ast.rs
@@ -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,