diff options
| author | Corey Farwell <coreyf@rwell.org> | 2016-02-22 23:24:42 -0500 |
|---|---|---|
| committer | Corey Farwell <coreyf@rwell.org> | 2016-02-22 23:24:42 -0500 |
| commit | bc2f5e261283c3a3d996ae36db053ca096dd01f8 (patch) | |
| tree | daa1c5f030d10b200c1dff11be19925cc1617394 /src/libsyntax/parse/attr.rs | |
| parent | c8fc4817dcbf50690aba1fc8bd4db336aff2dbc6 (diff) | |
| download | rust-bc2f5e261283c3a3d996ae36db053ca096dd01f8.tar.gz rust-bc2f5e261283c3a3d996ae36db053ca096dd01f8.zip | |
Use associated functions for libsyntax SepSeq constructors.
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 505e543a3fb..0950d6082e7 100644 --- a/src/libsyntax/parse/attr.rs +++ b/src/libsyntax/parse/attr.rs @@ -11,7 +11,7 @@ use attr; use ast; use codemap::{spanned, Spanned, mk_sp, Span}; -use parse::common::*; //resolve bug? +use parse::common::SeqSep; use parse::PResult; use parse::token; use parse::parser::{Parser, TokenType}; @@ -200,7 +200,7 @@ impl<'a> Parser<'a> { fn parse_meta_seq(&mut self) -> PResult<'a, Vec<P<ast::MetaItem>>> { self.parse_unspanned_seq(&token::OpenDelim(token::Paren), &token::CloseDelim(token::Paren), - seq_sep_trailing_allowed(token::Comma), + SeqSep::trailing_allowed(token::Comma), |p: &mut Parser<'a>| p.parse_meta_item()) } } |
