From: Matthias Krüger Date: Sun, 29 Jan 2023 19:03:36 +0000 (+0100) Subject: Rollup merge of #106798 - scottmcm:signum-via-cmp, r=Mark-Simulacrum X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=782da867c801441212a00f20bf75bc312c815460;p=rust.git 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: --- 782da867c801441212a00f20bf75bc312c815460