From 1971e02ec62bfe50963d1986552e241602c3dc20 Mon Sep 17 00:00:00 2001 From: Chris Morgan Date: Fri, 7 Nov 2014 17:12:44 +1100 Subject: [PATCH] Derive Clone for TypeId. --- src/libcore/intrinsics.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcore/intrinsics.rs b/src/libcore/intrinsics.rs index 91f95ef203c12..c09921cbdb7ad 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, }