about summary refs log tree commit diff
path: root/example/mini_core.rs
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2020-11-03 11:00:04 +0100
committerbjorn3 <bjorn3@users.noreply.github.com>2020-11-03 11:00:04 +0100
commit285c7c66dca6756a77def01b60bf03edc26abb9c (patch)
treef766b683ac06d5d9cc912e1d59a4875693403e3f /example/mini_core.rs
parent793d26047f994e23415f8f6bb5686ff25d3dda92 (diff)
downloadrust-285c7c66dca6756a77def01b60bf03edc26abb9c.tar.gz
rust-285c7c66dca6756a77def01b60bf03edc26abb9c.zip
Merge commit '03f01bbe901d60b71cf2c5ec766aef5e532ab79d' into update_cg_clif-2020-11-01
Diffstat (limited to 'example/mini_core.rs')
-rw-r--r--example/mini_core.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/example/mini_core.rs b/example/mini_core.rs
index a972beedaa3..ce07fe83df1 100644
--- a/example/mini_core.rs
+++ b/example/mini_core.rs
@@ -48,6 +48,7 @@ unsafe impl Copy for u8 {}
 unsafe impl Copy for u16 {}
 unsafe impl Copy for u32 {}
 unsafe impl Copy for u64 {}
+unsafe impl Copy for u128 {}
 unsafe impl Copy for usize {}
 unsafe impl Copy for i8 {}
 unsafe impl Copy for i16 {}
@@ -283,6 +284,15 @@ impl PartialEq for u64 {
     }
 }
 
+impl PartialEq for u128 {
+    fn eq(&self, other: &u128) -> bool {
+        (*self) == (*other)
+    }
+    fn ne(&self, other: &u128) -> bool {
+        (*self) != (*other)
+    }
+}
+
 impl PartialEq for usize {
     fn eq(&self, other: &usize) -> bool {
         (*self) == (*other)