Skip to content

Commit 9b9c8ff

Browse files
committed
---
yaml --- r: 56502 b: refs/heads/auto c: 968089e h: refs/heads/master v: v3
1 parent 0166fbc commit 9b9c8ff

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
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: b82724db22673d08b5af85ce13568dc761fe7b59
17+
refs/heads/auto: 968089e4228ef9c3caab0ce6e327356757cb52c1
1818
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1919
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3238,7 +3238,7 @@ pub impl Parser {
32383238
is_tuple_like = false;
32393239
fields = ~[];
32403240
while *self.token != token::RBRACE {
3241-
match self.parse_class_item() {
3241+
match self.parse_struct_decl_field() {
32423242
dtor_decl(ref blk, ref attrs, s) => {
32433243
match the_dtor {
32443244
Some((_, _, s_first)) => {
@@ -3355,7 +3355,8 @@ pub impl Parser {
33553355
dtor_decl(body, attrs, mk_sp(lo, self.last_span.hi))
33563356
}
33573357

3358-
fn parse_class_item(&self) -> class_contents {
3358+
// parse an item in a struct definition
3359+
fn parse_struct_decl_field(&self) -> class_contents {
33593360

33603361
if self.try_parse_obsolete_priv_section() {
33613362
return members(~[]);
@@ -3759,7 +3760,7 @@ pub impl Parser {
37593760
let mut the_dtor: Option<(blk, ~[attribute], codemap::span)> = None;
37603761
let mut fields: ~[@struct_field] = ~[];
37613762
while *self.token != token::RBRACE {
3762-
match self.parse_class_item() {
3763+
match self.parse_struct_decl_field() {
37633764
dtor_decl(ref blk, ref attrs, s) => {
37643765
match the_dtor {
37653766
Some((_, _, s_first)) => {

0 commit comments

Comments
 (0)