diff options
| author | Corey Farwell <coreyf@rwell.org> | 2017-03-29 08:57:03 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-03-29 08:57:03 -0400 |
| commit | 978c90654b7a01ca38d78ed379c284f0ba9bba72 (patch) | |
| tree | 3cebcd9006644f0475e26e001b64f6d57d47b461 /src/rustllvm/PassWrapper.cpp | |
| parent | abf5592510156e08b4de3830afaabbc0b65ce054 (diff) | |
| parent | 5d3695362f795a45947e92c77f910dcacba575ea (diff) | |
| download | rust-978c90654b7a01ca38d78ed379c284f0ba9bba72.tar.gz rust-978c90654b7a01ca38d78ed379c284f0ba9bba72.zip | |
Rollup merge of #40720 - mitsuhiko:feature/rev-key, r=BurntSushi
Added core::cmp::Reverse for sort_by_key reverse sorting I'm not sure if this is the best way to go about proposing this feature but it's pretty useful. It allows you to use `sort_by_key` and return tuples where a single item is then reversed to how it normally sorts. I quite miss something like this in Rust currently though I'm not sure if this is the best way to implement it.
Diffstat (limited to 'src/rustllvm/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
