commit | 577135e79a32ccb927dc958e2225c69bc0238772 | [log] [tgz] |
---|---|---|
author | David Tolnay <[email protected]> | Fri Nov 27 16:23:53 2020 -0800 |
committer | David Tolnay <[email protected]> | Fri Nov 27 17:17:51 2020 -0800 |
tree | 7eef59f78afe9de902ef442657546f8b850a8276 | |
parent | bb6898536c42c9255fbcc4efdc6caf36d4349203 [diff] [blame] |
Support derive(PartialOrd, Ord)
diff --git a/syntax/derive.rs b/syntax/derive.rs index d258cc7..1099967 100644 --- a/syntax/derive.rs +++ b/syntax/derive.rs
@@ -12,7 +12,9 @@ Copy, Debug, Eq, + Ord, PartialEq, + PartialOrd, } impl Derive { @@ -22,7 +24,9 @@ "Copy" => Trait::Copy, "Debug" => Trait::Debug, "Eq" => Trait::Eq, + "Ord" => Trait::Ord, "PartialEq" => Trait::PartialEq, + "PartialOrd" => Trait::PartialOrd, _ => return None, }; let span = ident.span();