Skip to content

Commit 14f7da8

Browse files
committed
---
yaml --- r: 56506 b: refs/heads/auto c: 1abc1be h: refs/heads/master v: v3
1 parent 6eca633 commit 14f7da8

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1414
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1515
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1616
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
17-
refs/heads/auto: 7ef92ba246349b396333c8aaa8337667030a935f
17+
refs/heads/auto: 1abc1be81ad47ed97f37ca98429156e4392df12c
1818
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1919
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c

branches/auto/src/libsyntax/parse/parser.rs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3350,13 +3350,7 @@ pub impl Parser {
33503350
a_var
33513351
}
33523352

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
33603354
fn parse_struct_decl_field(&self) -> class_contents {
33613355

33623356
if self.try_parse_obsolete_priv_section() {
@@ -3378,7 +3372,9 @@ pub impl Parser {
33783372
}
33793373

33803374
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))
33823378
}
33833379
else {
33843380
return members(~[self.parse_single_struct_field(inherited)]);

0 commit comments

Comments
 (0)