about summary refs log tree commit diff
diff options
context:
space:
mode:
authorChris Morgan <me@chrismorgan.info>2014-11-07 17:12:44 +1100
committerChris Morgan <me@chrismorgan.info>2014-11-07 17:12:44 +1100
commit1971e02ec62bfe50963d1986552e241602c3dc20 (patch)
tree5bab98f69599c36b2d2ae9438ba0da2c75a92717
parent45cbdec4174778bf915f17561ef971c068a7fcbc (diff)
downloadrust-1971e02ec62bfe50963d1986552e241602c3dc20.tar.gz
rust-1971e02ec62bfe50963d1986552e241602c3dc20.zip
Derive Clone for TypeId.
-rw-r--r--src/libcore/intrinsics.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/intrinsics.rs b/src/libcore/intrinsics.rs
index 91f95ef203c..c09921cbdb7 100644
--- a/src/libcore/intrinsics.rs
+++ b/src/libcore/intrinsics.rs
@@ -536,7 +536,7 @@ extern "rust-intrinsic" {
 /// `TypeId` represents a globally unique identifier for a type
 #[lang="type_id"] // This needs to be kept in lockstep with the code in trans/intrinsic.rs and
                   // middle/lang_items.rs
-#[deriving(PartialEq, Eq, Show)]
+#[deriving(Clone, PartialEq, Eq, Show)]
 pub struct TypeId {
     t: u64,
 }