Skip to content

Commit 7ef92ba

Browse files
committed
rename parse_instance_var to parse_name_and_ty
the name no longer made sense. perhaps this could just be inlined.
1 parent 2a74c58 commit 7ef92ba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libsyntax/parse/parser.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2463,8 +2463,8 @@ pub impl Parser {
24632463
return @spanned(lo, self.last_span.hi, decl_local(locals));
24642464
}
24652465
2466-
/* assumes "let" token has already been consumed */
2467-
fn parse_instance_var(&self, pr: visibility) -> @struct_field {
2466+
// parse a structure field
2467+
fn parse_name_and_ty(&self, pr: visibility) -> @struct_field {
24682468
let mut is_mutbl = struct_immutable;
24692469
let lo = self.span.lo;
24702470
if self.eat_keyword(&~"mut") {
@@ -3327,7 +3327,7 @@ pub impl Parser {
33273327
self.obsolete(*self.last_span, ObsoleteLet);
33283328
}
33293329

3330-
let a_var = self.parse_instance_var(vis);
3330+
let a_var = self.parse_name_and_ty(vis);
33313331
match *self.token {
33323332
token::SEMI => {
33333333
self.obsolete(copy *self.span, ObsoleteFieldTerminator);

0 commit comments

Comments
 (0)