@@ -3178,15 +3178,15 @@ impl Parser {
3178
3178
// parse a structure field
3179
3179
fn parse_name_and_ty ( & self ,
3180
3180
pr : visibility ,
3181
- attrs : ~[ Attribute ] ) -> @ struct_field {
3181
+ attrs : ~[ Attribute ] ) -> struct_field {
3182
3182
let lo = self . span . lo ;
3183
3183
if !is_plain_ident ( & * self . token ) {
3184
3184
self . fatal ( "expected ident" ) ;
3185
3185
}
3186
3186
let name = self . parse_ident ( ) ;
3187
3187
self . expect ( & token:: COLON ) ;
3188
3188
let ty = self . parse_ty ( false ) ;
3189
- @ spanned ( lo, self . last_span . hi , ast:: struct_field_ {
3189
+ spanned ( lo, self . last_span . hi , ast:: struct_field_ {
3190
3190
kind : named_field ( name, pr) ,
3191
3191
id : ast:: DUMMY_NODE_ID ,
3192
3192
ty : ty,
@@ -4022,7 +4022,7 @@ impl Parser {
4022
4022
let class_name = self . parse_ident ( ) ;
4023
4023
let generics = self . parse_generics ( ) ;
4024
4024
4025
- let mut fields: ~[ @ struct_field ] ;
4025
+ let mut fields: ~[ struct_field ] ;
4026
4026
let is_tuple_like;
4027
4027
4028
4028
if self . eat ( & token:: LBRACE ) {
@@ -4053,7 +4053,7 @@ impl Parser {
4053
4053
ty : p. parse_ty ( false ) ,
4054
4054
attrs : attrs,
4055
4055
} ;
4056
- @ spanned ( lo, p. span . hi , struct_field_)
4056
+ spanned ( lo, p. span . hi , struct_field_)
4057
4057
} ) ;
4058
4058
self . expect ( & token:: SEMI ) ;
4059
4059
} else if self . eat ( & token:: SEMI ) {
@@ -4091,7 +4091,7 @@ impl Parser {
4091
4091
pub fn parse_single_struct_field ( & self ,
4092
4092
vis : visibility ,
4093
4093
attrs : ~[ Attribute ] )
4094
- -> @ struct_field {
4094
+ -> struct_field {
4095
4095
let a_var = self . parse_name_and_ty ( vis, attrs) ;
4096
4096
match * self . token {
4097
4097
token:: COMMA => {
@@ -4108,7 +4108,7 @@ impl Parser {
4108
4108
}
4109
4109
4110
4110
// parse an element of a struct definition
4111
- fn parse_struct_decl_field ( & self ) -> @ struct_field {
4111
+ fn parse_struct_decl_field ( & self ) -> struct_field {
4112
4112
4113
4113
let attrs = self . parse_outer_attributes ( ) ;
4114
4114
@@ -4470,7 +4470,7 @@ impl Parser {
4470
4470
// parse a structure-like enum variant definition
4471
4471
// this should probably be renamed or refactored...
4472
4472
fn parse_struct_def ( & self ) -> @struct_def {
4473
- let mut fields : ~[ @ struct_field] = ~[ ] ;
4473
+ let mut fields : ~[ struct_field] = ~[ ] ;
4474
4474
while * self . token != token:: RBRACE {
4475
4475
fields. push ( self . parse_struct_decl_field ( ) ) ;
4476
4476
}
0 commit comments