1
Fork 0

Rote changes due to the fact that ast paths no longer carry this extraneous bounds.

This commit is contained in:
Niko Matsakis 2014-11-20 15:08:48 -05:00
parent f4e29e7e9a
commit c4a3be6bd1
17 changed files with 60 additions and 75 deletions

View file

@ -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" => {