File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed 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