Fix path parsing
This commit is contained in:
parent
46100c0622
commit
2337d88339
3 changed files with 16 additions and 5 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue