diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-03-25 16:53:52 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-03-26 10:20:15 -0700 |
| commit | 7de48419ee8f9ae0a41503e5e104709ea39bfe85 (patch) | |
| tree | 6362ff55ac160b1f880eb9a405f3152574e23d1a /src/libsyntax/ext | |
| parent | 104aaa44e8506cfaf2c00d6ca35dce93a8228545 (diff) | |
| download | rust-7de48419ee8f9ae0a41503e5e104709ea39bfe85.tar.gz rust-7de48419ee8f9ae0a41503e5e104709ea39bfe85.zip | |
syntax: Permit visibility on tuple fields
This change is in preparation for #8122. Nothing is currently done with these visibility qualifiers, they are just parsed and accepted by the compiler. RFC: 0004-private-fields
Diffstat (limited to 'src/libsyntax/ext')
| -rw-r--r-- | src/libsyntax/ext/deriving/generic.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libsyntax/ext/deriving/generic.rs b/src/libsyntax/ext/deriving/generic.rs index 89a8b2cd336..9c1d6a1d5ca 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 } |
