mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-30 04:56:25 +03:00
Add comment to avoid accidentally remove the changes.
This commit is contained in:
@@ -1012,6 +1012,8 @@ fn gt(&self, other: &$t) -> bool { (*self) > (*other) }
|
||||
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 }
|
||||
|
||||
Reference in New Issue
Block a user