We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0be41ce commit 345a219Copy full SHA for 345a219
src/librustsyntax/parse/parser.rs
@@ -510,10 +510,10 @@ fn parse_lit(p: parser) -> ast::lit {
510
fn parse_path_without_tps(p: parser) -> @ast::path {
511
let lo = p.span.lo;
512
let global = eat(p, token::MOD_SEP);
513
- let mut ids = [parse_ident(p)];
514
- while p.look_ahead(1u) != token::LT && eat(p, token::MOD_SEP) {
+ let mut ids = [];
+ do {
515
ids += [parse_ident(p)];
516
- }
+ } while p.look_ahead(1u) != token::LT && eat(p, token::MOD_SEP);
517
@{span: mk_sp(lo, p.last_span.hi), global: global,
518
idents: ids, rp: none, types: []}
519
}
0 commit comments