diff options
| author | Nick Whitney <ubersentinel@gmail.com> | 2017-06-06 01:31:46 -0400 |
|---|---|---|
| committer | Nick Whitney <ubersentinel@gmail.com> | 2017-06-06 22:42:48 -0400 |
| commit | 2cadc32b66e135eeb9ac22d433cd931b021792a5 (patch) | |
| tree | bfccae0612ff6fe569a77fdf6976358d690b3f7d /src/test/run-pass/thinlto | |
| parent | 76242aebb9d47558124c991a6faf0eb706d35703 (diff) | |
| download | rust-2cadc32b66e135eeb9ac22d433cd931b021792a5.tar.gz rust-2cadc32b66e135eeb9ac22d433cd931b021792a5.zip | |
Add max and min default fns to Ord trait
Pursuant to issue #25663, this commit adds the max and min functions to the Ord trait, enabling items that implement Ord to use UFCS (ex. 1.max(2)) instead of the longer std::cmp::max(1,2) format.
Diffstat (limited to 'src/test/run-pass/thinlto')
0 files changed, 0 insertions, 0 deletions
