diff options
| author | Lindsey Kuper <lindsey@rockstargirl.org> | 2012-06-12 10:17:36 -0700 |
|---|---|---|
| committer | Lindsey Kuper <lindsey@rockstargirl.org> | 2012-06-12 11:18:31 -0700 |
| commit | bffb7db8aec094f6adbf7c68a7c02e8b1332a704 (patch) | |
| tree | d5762fb0cc2f1a4c296f4b2942df15fc02641ca4 /src/libsyntax/parse/attr.rs | |
| parent | d04ed0c4931f36f15e18f46b233d13572f4c9107 (diff) | |
| download | rust-bffb7db8aec094f6adbf7c68a7c02e8b1332a704.tar.gz rust-bffb7db8aec094f6adbf7c68a7c02e8b1332a704.zip | |
syntax: clarify that trailing separators are never required
Diffstat (limited to 'src/libsyntax/parse/attr.rs')
| -rw-r--r-- | src/libsyntax/parse/attr.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/parse/attr.rs b/src/libsyntax/parse/attr.rs index 6615938b9ad..cddf8de479b 100644 --- a/src/libsyntax/parse/attr.rs +++ b/src/libsyntax/parse/attr.rs @@ -1,6 +1,6 @@ import either::{either, left, right}; import ast_util::spanned; -import common::{parser_common, seq_sep}; +import common::{parser_common, seq_sep_trailing_disallowed}; export attr_or_ext; export parser_attr; @@ -111,7 +111,7 @@ impl parser_attr for parser { fn parse_meta_seq() -> [@ast::meta_item] { ret self.parse_seq(token::LPAREN, token::RPAREN, - seq_sep(token::COMMA), + seq_sep_trailing_disallowed(token::COMMA), {|p| p.parse_meta_item()}).node; } |
