Rote changes due to the fact that ast paths no longer carry this extraneous bounds.
This commit is contained in:
parent
f4e29e7e9a
commit
c4a3be6bd1
17 changed files with 60 additions and 75 deletions
|
@ -514,7 +514,7 @@ pub fn parse_nt(p: &mut Parser, name: &str) -> Nonterminal {
|
|||
"stmt" => token::NtStmt(p.parse_stmt(Vec::new())),
|
||||
"pat" => token::NtPat(p.parse_pat()),
|
||||
"expr" => token::NtExpr(p.parse_expr()),
|
||||
"ty" => token::NtTy(p.parse_ty(false /* no need to disambiguate*/)),
|
||||
"ty" => token::NtTy(p.parse_ty()),
|
||||
// this could be handled like a token, since it is one
|
||||
"ident" => match p.token {
|
||||
token::Ident(sn,b) => { p.bump(); token::NtIdent(box sn,b) }
|
||||
|
@ -525,7 +525,7 @@ pub fn parse_nt(p: &mut Parser, name: &str) -> Nonterminal {
|
|||
}
|
||||
},
|
||||
"path" => {
|
||||
token::NtPath(box p.parse_path(LifetimeAndTypesWithoutColons).path)
|
||||
token::NtPath(box p.parse_path(LifetimeAndTypesWithoutColons))
|
||||
}
|
||||
"meta" => token::NtMeta(p.parse_meta_item()),
|
||||
"tt" => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue