aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/codegen/CodegenRust.py
diff options
context:
space:
mode:
authorbors-servo <metajack+bors@gmail.com>2015-01-08 08:00:57 -0700
committerbors-servo <metajack+bors@gmail.com>2015-01-08 08:00:57 -0700
commit1d7148c79f9124779a910fd5291c5fa0543b2dae (patch)
tree39c86574fa33821af51560fb6991911328bdf4e2 /components/script/dom/bindings/codegen/CodegenRust.py
parent19cb0fa9e457c18b36944c2691c7491ee6eb9cd2 (diff)
parent16c7060bc8ff91527ae97f8a3feee5706747b9c5 (diff)
downloadservo-1d7148c79f9124779a910fd5291c5fa0543b2dae.tar.gz
servo-1d7148c79f9124779a910fd5291c5fa0543b2dae.zip
auto merge of #4554 : servo/servo/rustup_20141221, r=jdm
Diffstat (limited to 'components/script/dom/bindings/codegen/CodegenRust.py')
-rw-r--r--components/script/dom/bindings/codegen/CodegenRust.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/dom/bindings/codegen/CodegenRust.py b/components/script/dom/bindings/codegen/CodegenRust.py
index 82b79eb1971..4d8dd7599c5 100644
--- a/components/script/dom/bindings/codegen/CodegenRust.py
+++ b/components/script/dom/bindings/codegen/CodegenRust.py
@@ -2763,7 +2763,7 @@ class CGEnum(CGThing):
decl = """\
#[repr(uint)]
-#[deriving(PartialEq)]
+#[deriving(PartialEq, Copy)]
#[jstraceable]
pub enum %s {
%s
@@ -4693,7 +4693,7 @@ class CGCallback(CGClass):
bases=[ClassBase(baseName)],
constructors=self.getConstructors(),
methods=realMethods+getters+setters,
- decorators="#[deriving(PartialEq,Clone)]#[jstraceable]")
+ decorators="#[deriving(PartialEq,Copy,Clone)]#[jstraceable]")
def getConstructors(self):
return [ClassConstructor(
@@ -5189,8 +5189,8 @@ class GlobalGenRoots():
return CGList([
CGGeneric(AUTOGENERATED_WARNING_COMMENT),
CGGeneric("pub const MAX_PROTO_CHAIN_LENGTH: uint = %d;\n\n" % config.maxProtoChainLength),
- CGNonNamespacedEnum('ID', protos, [0], deriving="PartialEq"),
- CGNonNamespacedEnum('Proxies', proxies, [0], deriving="PartialEq"),
+ CGNonNamespacedEnum('ID', protos, [0], deriving="PartialEq, Copy"),
+ CGNonNamespacedEnum('Proxies', proxies, [0], deriving="PartialEq, Copy"),
])