about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-01-29 20:03:36 +0100
committerGitHub <noreply@github.com>2023-01-29 20:03:36 +0100
commit782da867c801441212a00f20bf75bc312c815460 (patch)
treeb5a28120b12e5a4e65361c2163a10cec4aa7a115 /compiler/rustc_codegen_llvm/src/errors.rs
parent192eecd53a41bb32f2a44a854697835ff67ee890 (diff)
parentfcbc12eae35296841b0ddd3bacbb43e1d0ae654e (diff)
downloadrust-782da867c801441212a00f20bf75bc312c815460.tar.gz
rust-782da867c801441212a00f20bf75bc312c815460.zip
Rollup merge of #106798 - scottmcm:signum-via-cmp, r=Mark-Simulacrum
Implement `signum` with `Ord`

Rather than needing to do things like #105840 for `signum` too, might as well just implement that method using `Ord`, since it's doing the same "I need `-1`/`0`/`+1`" behaviour that `cmp` is already doing.

This also seems to slightly improve the assembly: <https://rust.godbolt.org/z/5oEEqbxK1>
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions