about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-07-23 02:47:54 +0000
committerbors <bors@rust-lang.org>2022-07-23 02:47:54 +0000
commited793d86daa67fb1117dd1db8da5da765e0fc773 (patch)
tree5285379d5f405f897a3b712a44f8c024bfc44327 /compiler/rustc_codegen_llvm/src
parent8aedb9c68dceebef23439541337a321252036b54 (diff)
parentbded8fcfc0a0735071f41bec5d9a388e8c0c7c7c (diff)
downloadrust-ed793d86daa67fb1117dd1db8da5da765e0fc773.tar.gz
rust-ed793d86daa67fb1117dd1db8da5da765e0fc773.zip
Auto merge of #93397 - joshtriplett:sort-floats, r=Amanieu
Add `[f32]::sort_floats` and `[f64]::sort_floats`

It's inconvenient to sort a slice or Vec of floats, compared to sorting integers. To simplify numeric code, add a convenience method to `[f32]` and `[f64]` to sort them using `sort_unstable_by` with `total_cmp`.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions