This commit is contained in:
Aleksey Kladov 2018-01-22 11:31:55 +03:00
parent 13c6a34354
commit d280c72338

View file

@ -127,11 +127,7 @@ fn pos_fields(p: &mut Parser) {
if !p.expect(L_PAREN) { if !p.expect(L_PAREN) {
return; return;
} }
loop { while !(p.at(R_PAREN) || p.at(EOF)) {
if p.at(R_PAREN) || p.at(EOF) {
break;
}
let pos_field = p.start(); let pos_field = p.start();
visibility(p); visibility(p);
types::type_ref(p); types::type_ref(p);