diff options
| author | Corey Richardson <corey@octayn.net> | 2014-12-05 10:06:50 -0800 |
|---|---|---|
| committer | Corey Richardson <corey@octayn.net> | 2014-12-05 10:06:50 -0800 |
| commit | 26f2867c2e5439156f40f18c5a828a5a94c4352a (patch) | |
| tree | d17972e0c7eac56590fa02d71292497afd926e00 /src/libsyntax/parse/attr.rs | |
| parent | 2af097da0dc198b7289eae61b9a97185fd55ae0c (diff) | |
| parent | f5715f7867ab7e13fd3304d85861b1dcb1375a89 (diff) | |
| download | rust-26f2867c2e5439156f40f18c5a828a5a94c4352a.tar.gz rust-26f2867c2e5439156f40f18c5a828a5a94c4352a.zip | |
rollup merge of #19413: P1start/more-trailing-commas
The only other place I know of that doesn’t allow trailing commas is closure types (#19414), and those are a bit tricky to fix (I suspect it might be impossible without infinite lookahead) so I didn’t implement that in this patch. There are other issues surrounding closure type parsing anyway, in particular #19410.
Diffstat (limited to 'src/libsyntax/parse/attr.rs')
| -rw-r--r-- | src/libsyntax/parse/attr.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/attr.rs b/src/libsyntax/parse/attr.rs index db7bc6c323f..41fee1556ab 100644 --- a/src/libsyntax/parse/attr.rs +++ b/src/libsyntax/parse/attr.rs @@ -212,7 +212,7 @@ impl<'a> ParserAttr for Parser<'a> { fn parse_meta_seq(&mut self) -> Vec<P<ast::MetaItem>> { self.parse_seq(&token::OpenDelim(token::Paren), &token::CloseDelim(token::Paren), - seq_sep_trailing_disallowed(token::Comma), + seq_sep_trailing_allowed(token::Comma), |p| p.parse_meta_item()).node } |
