We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0337cc1 commit 96983fcCopy full SHA for 96983fc
src/libcore/cmp.rs
@@ -1012,6 +1012,8 @@ mod impls {
1012
impl Ord for $t {
1013
#[inline]
1014
fn cmp(&self, other: &$t) -> Ordering {
1015
+ // The order here is important to generate more optimal assembly.
1016
+ // See <https://github.com/rust-lang/rust/issues/63758> for more info.
1017
if *self < *other { Less }
1018
else if *self > *other { Greater }
1019
else { Equal }
0 commit comments