Add comment to avoid accidentally remove the changes.
This commit is contained in:
parent
0337cc117d
commit
96983fc530
1 changed files with 2 additions and 0 deletions
|
|
@ -1012,6 +1012,8 @@ mod impls {
|
|||
impl Ord for $t {
|
||||
#[inline]
|
||||
fn cmp(&self, other: &$t) -> Ordering {
|
||||
// The order here is important to generate more optimal assembly.
|
||||
// See <https://github.com/rust-lang/rust/issues/63758> for more info.
|
||||
if *self < *other { Less }
|
||||
else if *self > *other { Greater }
|
||||
else { Equal }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue