Skip to content

Commit 02fd7e1

Browse files
committed
---
yaml --- r: 57858 b: refs/heads/incoming c: 968089e h: refs/heads/master v: v3
1 parent 22a4f01 commit 02fd7e1

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
@@ -6,7 +6,7 @@ refs/heads/try: bf67eb2362b7d0f37012f2d6dac604c3bbacd2c6
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/incoming: b82724db22673d08b5af85ce13568dc761fe7b59
9+
refs/heads/incoming: 968089e4228ef9c3caab0ce6e327356757cb52c1
1010
refs/heads/dist-snap: 00dbbd01c2aee72982b3e0f9511ae1d4428c3ba9
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/incoming/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)