Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core: add a reverse method to Ordering.
This flips the comparison and is designed to be used when sorting etc.
- Loading branch information
Showing
2 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7df2771
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saw approval from alexcrichton
at huonw@7df2771
7df2771
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging huonw/rust/Ordering-reverse = 7df2771 into auto
7df2771
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
huonw/rust/Ordering-reverse = 7df2771 merged ok, testing candidate = ce01b4b
7df2771
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all tests pass:
success: http://buildbot.rust-lang.org/builders/auto-mac-32-opt/builds/660
success: http://buildbot.rust-lang.org/builders/auto-mac-64-opt/builds/660
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-c/builds/659
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-t/builds/660
success: http://buildbot.rust-lang.org/builders/auto-linux-32-opt/builds/657
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-c/builds/658
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-t/builds/657
success: http://buildbot.rust-lang.org/builders/auto-linux-64-opt/builds/663
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-c/builds/658
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-t/builds/657
success: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android-t/builds/660
success: http://buildbot.rust-lang.org/builders/auto-win-32-opt/builds/658
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-t/builds/658
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-c/builds/659
7df2771
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fast-forwarding master to auto = ce01b4b