Allow nullary tag names to be qualified
This commit is contained in:
parent
3ebf7b42bd
commit
bf83fd3091
1 changed files with 2 additions and 3 deletions
|
@ -1493,10 +1493,9 @@ fn parse_pat(p: parser) -> @ast::pat {
|
|||
}
|
||||
_ { true }
|
||||
} {
|
||||
hi = p.span.hi;
|
||||
let name = parse_value_ident(p);
|
||||
let name = parse_path(p);
|
||||
let sub = eat(p, token::AT) ? some(parse_pat(p)) : none;
|
||||
pat = ast::pat_ident(ident_to_path(mk_sp(lo, hi), name), sub);
|
||||
pat = ast::pat_ident(name, sub);
|
||||
} else {
|
||||
let tag_path = parse_path_and_ty_param_substs(p, true);
|
||||
hi = tag_path.span.hi;
|
||||
|
|
Loading…
Add table
Reference in a new issue