@@ -3162,15 +3162,15 @@ impl Parser {
3162
3162
// parse a structure field
3163
3163
fn parse_name_and_ty ( & self ,
3164
3164
pr : visibility ,
3165
- attrs : ~[ Attribute ] ) -> @ struct_field {
3165
+ attrs : ~[ Attribute ] ) -> struct_field {
3166
3166
let lo = self . span . lo ;
3167
3167
if !is_plain_ident ( & * self . token ) {
3168
3168
self . fatal ( "expected ident" ) ;
3169
3169
}
3170
3170
let name = self . parse_ident ( ) ;
3171
3171
self . expect ( & token:: COLON ) ;
3172
3172
let ty = self . parse_ty ( false ) ;
3173
- @ spanned ( lo, self . last_span . hi , ast:: struct_field_ {
3173
+ spanned ( lo, self . last_span . hi , ast:: struct_field_ {
3174
3174
kind : named_field ( name, pr) ,
3175
3175
id : ast:: DUMMY_NODE_ID ,
3176
3176
ty : ty,
@@ -4006,7 +4006,7 @@ impl Parser {
4006
4006
let class_name = self . parse_ident ( ) ;
4007
4007
let generics = self . parse_generics ( ) ;
4008
4008
4009
- let mut fields: ~[ @ struct_field ] ;
4009
+ let mut fields: ~[ struct_field ] ;
4010
4010
let is_tuple_like;
4011
4011
4012
4012
if self . eat ( & token:: LBRACE ) {
@@ -4037,7 +4037,7 @@ impl Parser {
4037
4037
ty : p. parse_ty ( false ) ,
4038
4038
attrs : attrs,
4039
4039
} ;
4040
- @ spanned ( lo, p. span . hi , struct_field_)
4040
+ spanned ( lo, p. span . hi , struct_field_)
4041
4041
} ) ;
4042
4042
self . expect ( & token:: SEMI ) ;
4043
4043
} else if self . eat ( & token:: SEMI ) {
@@ -4075,7 +4075,7 @@ impl Parser {
4075
4075
pub fn parse_single_struct_field ( & self ,
4076
4076
vis : visibility ,
4077
4077
attrs : ~[ Attribute ] )
4078
- -> @ struct_field {
4078
+ -> struct_field {
4079
4079
let a_var = self . parse_name_and_ty ( vis, attrs) ;
4080
4080
match * self . token {
4081
4081
token:: COMMA => {
@@ -4092,7 +4092,7 @@ impl Parser {
4092
4092
}
4093
4093
4094
4094
// parse an element of a struct definition
4095
- fn parse_struct_decl_field ( & self ) -> @ struct_field {
4095
+ fn parse_struct_decl_field ( & self ) -> struct_field {
4096
4096
4097
4097
let attrs = self . parse_outer_attributes ( ) ;
4098
4098
@@ -4454,7 +4454,7 @@ impl Parser {
4454
4454
// parse a structure-like enum variant definition
4455
4455
// this should probably be renamed or refactored...
4456
4456
fn parse_struct_def ( & self ) -> @struct_def {
4457
- let mut fields : ~[ @ struct_field] = ~[ ] ;
4457
+ let mut fields : ~[ struct_field] = ~[ ] ;
4458
4458
while * self . token != token:: RBRACE {
4459
4459
fields. push ( self . parse_struct_decl_field ( ) ) ;
4460
4460
}
0 commit comments