about summary refs log tree commit diff
path: root/src/libsyntax/ext
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-03-26 16:37:03 -0700
committerbors <bors@rust-lang.org>2014-03-26 16:37:03 -0700
commitc83994e0f492d5e416537cb7ce1063662c0e44e7 (patch)
tree637e049348dc8d3097a7c85df3c123dbcb9b93ae /src/libsyntax/ext
parent533a5263279d177127607f1883b9a85824d5ef52 (diff)
parent7de48419ee8f9ae0a41503e5e104709ea39bfe85 (diff)
downloadrust-c83994e0f492d5e416537cb7ce1063662c0e44e7.tar.gz
rust-c83994e0f492d5e416537cb7ce1063662c0e44e7.zip
auto merge of #13145 : alexcrichton/rust/flip-some-defaults, r=brson
This change prepares `rustc` to accept private fields by default. These changes will have to go through a snapshot before the rest of the changes can happen.
Diffstat (limited to 'src/libsyntax/ext')
-rw-r--r--src/libsyntax/ext/deriving/generic.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libsyntax/ext/deriving/generic.rs b/src/libsyntax/ext/deriving/generic.rs
index a959e388bcb..5454d8912a5 100644
--- a/src/libsyntax/ext/deriving/generic.rs
+++ b/src/libsyntax/ext/deriving/generic.rs
@@ -1007,7 +1007,7 @@ impl<'a> TraitDef<'a> {
             let sp = self.set_expn_info(cx, field.span);
             match field.node.kind {
                 ast::NamedField(ident, _) => named_idents.push((ident, sp)),
-                ast::UnnamedField => just_spans.push(sp),
+                ast::UnnamedField(..) => just_spans.push(sp),
             }
         }
 
@@ -1061,8 +1061,8 @@ impl<'a> TraitDef<'a> {
                     struct_type = Record;
                     Some(ident)
                 }
-                ast::UnnamedField if (struct_type == Unknown ||
-                                      struct_type == Tuple) => {
+                ast::UnnamedField(..) if (struct_type == Unknown ||
+                                          struct_type == Tuple) => {
                     struct_type = Tuple;
                     None
                 }