]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_data_structures/src/intern.rs
Auto merge of #2715 - RalfJung:rustup, r=RalfJung
[rust.git] / compiler / rustc_data_structures / src / intern.rs
index 11cbff8ea6a84ef7d27adf4a266866a3409848ec..76a1288e6d3512622ea743779239605942bf82cf 100644 (file)
@@ -72,7 +72,7 @@ fn partial_cmp(&self, other: &Interned<'a, T>) -> Option<Ordering> {
         if ptr::eq(self.0, other.0) {
             Some(Ordering::Equal)
         } else {
-            let res = self.0.partial_cmp(&other.0);
+            let res = self.0.partial_cmp(other.0);
             debug_assert_ne!(res, Some(Ordering::Equal));
             res
         }
@@ -86,7 +86,7 @@ fn cmp(&self, other: &Interned<'a, T>) -> Ordering {
         if ptr::eq(self.0, other.0) {
             Ordering::Equal
         } else {
-            let res = self.0.cmp(&other.0);
+            let res = self.0.cmp(other.0);
             debug_assert_ne!(res, Ordering::Equal);
             res
         }