]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #42496 - Razaekel:feature/integer_max-min, r=BurntSushi
authorCorey Farwell <coreyf@rwell.org>
Tue, 13 Jun 2017 21:15:00 +0000 (17:15 -0400)
committerGitHub <noreply@github.com>
Tue, 13 Jun 2017 21:15:00 +0000 (17:15 -0400)
Add max and min to Ord

Pursuant to issue #25663, this PR adds max and min methods with default implementations to std::cmp::Ord. It also modifies std::cmp::max|min to internally alias to Ord::max|min, so that any overrides of the default implementations are automatically used by std::cmp::max|min.

Closes #25663


Trivial merge