Skip to content

Commit 96983fc

Browse files
committed
Add comment to avoid accidentally remove the changes.
1 parent 0337cc1 commit 96983fc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libcore/cmp.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1012,6 +1012,8 @@ mod impls {
10121012
impl Ord for $t {
10131013
#[inline]
10141014
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.
10151017
if *self < *other { Less }
10161018
else if *self > *other { Greater }
10171019
else { Equal }

0 commit comments

Comments
 (0)