File tree Expand file tree Collapse file tree 1 file changed +8
-13
lines changed Expand file tree Collapse file tree 1 file changed +8
-13
lines changed Original file line number Diff line number Diff line change @@ -336,19 +336,14 @@ fn parse_constrs(parser p) -> common.spanned[vec[@ast.constr]] {
336
336
let vec[ @ast. constr] constrs = vec ( ) ;
337
337
if ( p. peek ( ) == token. COLON ) {
338
338
p. bump ( ) ;
339
- let bool more = true ;
340
- while ( more) {
341
- alt ( p. peek ( ) ) {
342
- case ( token. IDENT ( _) ) {
343
- auto constr = parse_ty_constr ( p) ;
344
- hi = constr. span . hi ;
345
- Vec . push [ @ast. constr ] ( constrs, constr) ;
346
- if ( p. peek ( ) == token. COMMA ) {
347
- p. bump ( ) ;
348
- more = false ;
349
- }
350
- }
351
- case ( _) { more = false ; }
339
+ while ( true ) {
340
+ auto constr = parse_ty_constr ( p) ;
341
+ hi = constr. span . hi ;
342
+ Vec . push [ @ast. constr ] ( constrs, constr) ;
343
+ if ( p. peek ( ) == token. COMMA ) {
344
+ p. bump ( ) ;
345
+ } else {
346
+ break ;
352
347
}
353
348
}
354
349
}
You can’t perform that action at this time.
0 commit comments