File tree Expand file tree Collapse file tree 2 files changed +5
-9
lines changed
branches/auto/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 @@ -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: 7ef92ba246349b396333c8aaa8337667030a935f
17
+ refs/heads/auto: 1abc1be81ad47ed97f37ca98429156e4392df12c
18
18
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
19
19
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
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