]> git.lizzy.rs Git - rust.git/commit
rustc: Accept PartialOrd/PartialOrdEq for Eq/Ord
authorAlex Crichton <alex@alexcrichton.com>
Wed, 28 May 2014 17:00:00 +0000 (10:00 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 28 May 2014 17:02:06 +0000 (10:02 -0700)
commitf786f9bb15dd4436d04a89898f5dc51707b5d435
treeb32a2528ed3f65a6a74c325148bd5eb0583e025a
parent24b1ce1daf9dbf66d04116d0549a48a7610bc614
rustc: Accept PartialOrd/PartialOrdEq for Eq/Ord

This is a transitionary step towards completing #12517. This change modifies the
compiler to accept Partial{Ord,Eq} as deriving modes which will currently expand
to implementations of PartialOrd and PartialEq (synonyms for Eq/Ord).

After a snapshot, all of deriving(Eq, Ord) will be removed, and after a snapshot
of that, TotalEq/TotalOrd will be renamed to Eq/Ord.
src/libcore/cmp.rs
src/libsyntax/ext/deriving/cmp/eq.rs
src/libsyntax/ext/deriving/cmp/ord.rs
src/libsyntax/ext/deriving/mod.rs