Allow trailing commas in import lists. Closes #2582.
This commit is contained in:
parent
ce750a7dbc
commit
cce7327487
2 changed files with 11 additions and 1 deletions
|
@ -2414,7 +2414,7 @@ class parser {
|
|||
token::LBRACE {
|
||||
let idents = self.parse_unspanned_seq(
|
||||
token::LBRACE, token::RBRACE,
|
||||
seq_sep_trailing_disallowed(token::COMMA),
|
||||
seq_sep_trailing_allowed(token::COMMA),
|
||||
{|p| p.parse_path_list_ident()});
|
||||
let path = @{span: mk_sp(lo, self.span.hi),
|
||||
global: false, idents: path,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue