about summary refs log tree commit diff
path: root/src/rustllvm/PassWrapper.cpp
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2017-03-29 08:57:03 -0400
committerGitHub <noreply@github.com>2017-03-29 08:57:03 -0400
commit978c90654b7a01ca38d78ed379c284f0ba9bba72 (patch)
tree3cebcd9006644f0475e26e001b64f6d57d47b461 /src/rustllvm/PassWrapper.cpp
parentabf5592510156e08b4de3830afaabbc0b65ce054 (diff)
parent5d3695362f795a45947e92c77f910dcacba575ea (diff)
downloadrust-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