File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2463,8 +2463,8 @@ pub impl Parser {
2463
2463
return @spanned(lo, self.last_span.hi, decl_local(locals));
2464
2464
}
2465
2465
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 {
2468
2468
let mut is_mutbl = struct_immutable;
2469
2469
let lo = self.span.lo;
2470
2470
if self.eat_keyword(&~" mut") {
@@ -3327,7 +3327,7 @@ pub impl Parser {
3327
3327
self . obsolete ( * self . last_span , ObsoleteLet ) ;
3328
3328
}
3329
3329
3330
- let a_var = self . parse_instance_var ( vis) ;
3330
+ let a_var = self . parse_name_and_ty ( vis) ;
3331
3331
match * self . token {
3332
3332
token:: SEMI => {
3333
3333
self . obsolete ( copy * self . span , ObsoleteFieldTerminator ) ;
You can’t perform that action at this time.
0 commit comments