diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-01-29 20:03:36 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-29 20:03:36 +0100 |
| commit | 782da867c801441212a00f20bf75bc312c815460 (patch) | |
| tree | b5a28120b12e5a4e65361c2163a10cec4aa7a115 /compiler/rustc_codegen_llvm/src/errors.rs | |
| parent | 192eecd53a41bb32f2a44a854697835ff67ee890 (diff) | |
| parent | fcbc12eae35296841b0ddd3bacbb43e1d0ae654e (diff) | |
| download | rust-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
