Add comment to avoid accidentally remove the changes.

This commit is contained in:
Lzu Tao 2019-08-21 06:25:37 +00:00
parent 0337cc117d
commit 96983fc530

View file

@ -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 }