summaryrefslogtreecommitdiff
path: root/src/codegen/mod.rs
diff options
context:
space:
mode:
authorzzhu <zzhu@mozilla.com>2017-07-25 15:30:07 -0700
committerZhiting Zhu <zzhu@mozilla.com>2017-08-03 13:28:25 -0700
commit68f6adfea836150d1317212a8fb85c76e8c2e414 (patch)
tree9ee30a9c3f340e33a63980699c3941e3cf9ce304 /src/codegen/mod.rs
parent4142a8969a82b54c592b0293ee04080edc41dd9d (diff)
Can derive copy analysis
Diffstat (limited to 'src/codegen/mod.rs')
-rw-r--r--src/codegen/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codegen/mod.rs b/src/codegen/mod.rs
index 637e3a65..5c00a53d 100644
--- a/src/codegen/mod.rs
+++ b/src/codegen/mod.rs
@@ -1424,7 +1424,7 @@ impl CodeGenerator for CompInfo {
needs_default_impl = ctx.options().derive_default;
}
- if item.can_derive_copy(ctx, ()) &&
+ if item.can_derive_copy(ctx) &&
!item.annotations().disallow_copy() {
derives.push("Copy");
if used_template_params.is_some() {