Fix path parsing

This commit is contained in:
Seo Sanghyeon 2013-11-11 21:53:14 +09:00
parent 46100c0622
commit 2337d88339
3 changed files with 16 additions and 5 deletions

View file

@ -1470,10 +1470,6 @@ impl Parser {
let mut segments = ~[];
loop {
// First, parse an identifier.
match *self.token {
token::IDENT(*) => {}
_ => break,
}
let identifier = self.parse_ident();
// Next, parse a colon and bounded type parameters, if applicable.