File tree Expand file tree Collapse file tree 2 files changed +5
-9
lines changed
branches/incoming/src/libsyntax/parse Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ refs/heads/try: bf67eb2362b7d0f37012f2d6dac604c3bbacd2c6
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
8
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9
- refs/heads/incoming: 7ef92ba246349b396333c8aaa8337667030a935f
9
+ refs/heads/incoming: 1abc1be81ad47ed97f37ca98429156e4392df12c
10
10
refs/heads/dist-snap: 00dbbd01c2aee72982b3e0f9511ae1d4428c3ba9
11
11
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
12
12
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
Original file line number Diff line number Diff line change @@ -3350,13 +3350,7 @@ pub impl Parser {
3350
3350
a_var
3351
3351
}
3352
3352
3353
- fn parse_dtor ( & self , attrs : ~[ attribute ] ) -> class_contents {
3354
- let lo = self . last_span . lo ;
3355
- let body = self . parse_block ( ) ;
3356
- dtor_decl ( body, attrs, mk_sp ( lo, self . last_span . hi ) )
3357
- }
3358
-
3359
- // parse an item in a struct definition
3353
+ // parse an element of a struct definition
3360
3354
fn parse_struct_decl_field ( & self ) -> class_contents {
3361
3355
3362
3356
if self . try_parse_obsolete_priv_section ( ) {
@@ -3378,7 +3372,9 @@ pub impl Parser {
3378
3372
}
3379
3373
3380
3374
if self . eat_keyword ( & ~"drop") {
3381
- return self . parse_dtor ( attrs) ;
3375
+ let lo = self . last_span . lo ;
3376
+ let body = self . parse_block ( ) ;
3377
+ return dtor_decl ( body, attrs, mk_sp ( lo, self . last_span . hi ) )
3382
3378
}
3383
3379
else {
3384
3380
return members ( ~[ self . parse_single_struct_field ( inherited) ] ) ;
You can’t perform that action at this time.
0 commit comments