File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
branches/auto/src/libsyntax/parse Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,6 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
14
14
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
15
15
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
16
16
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
17
- refs/heads/auto: 703390150a75abbe6fbacd6b6e3ae08c9a6f5e37
17
+ refs/heads/auto: b82724db22673d08b5af85ce13568dc761fe7b59
18
18
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
19
19
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
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