File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
branches/try2/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 @@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
5
5
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
- refs/heads/try2: 703390150a75abbe6fbacd6b6e3ae08c9a6f5e37
8
+ refs/heads/try2: b82724db22673d08b5af85ce13568dc761fe7b59
9
9
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
10
10
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
11
11
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
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