File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -3807,7 +3807,7 @@ pub impl Parser {
3807
3807
3808
3808
let vis = self . parse_visibility ( ) ;
3809
3809
3810
- let ident, needs_comma , kind;
3810
+ let ident, kind;
3811
3811
let mut args = ~[ ] , disr_expr = None ;
3812
3812
ident = self . parse_ident ( ) ;
3813
3813
if self . eat ( & token:: LBRACE ) {
@@ -3836,7 +3836,6 @@ pub impl Parser {
3836
3836
} else {
3837
3837
kind = tuple_variant_kind ( ~[ ] ) ;
3838
3838
}
3839
- needs_comma = true ;
3840
3839
3841
3840
let vr = ast:: variant_ {
3842
3841
name : ident,
@@ -3848,7 +3847,7 @@ pub impl Parser {
3848
3847
} ;
3849
3848
variants. push ( spanned ( vlo, self . last_span . hi , vr) ) ;
3850
3849
3851
- if needs_comma && !self . eat ( & token:: COMMA ) { break ; }
3850
+ if !self . eat ( & token:: COMMA ) { break ; }
3852
3851
}
3853
3852
self . expect ( & token:: RBRACE ) ;
3854
3853
if ( have_disr && !all_nullary) {
You can’t perform that action at this time.
0 commit comments