From b02f5c2090340a9007989b3eb384facb0f0286f2 Mon Sep 17 00:00:00 2001 From: Luqman Aden Date: Thu, 21 Feb 2013 00:16:31 -0800 Subject: Get rid of structural records in libsyntax and the last bit in librustc. --- src/libsyntax/parse/attr.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/libsyntax/parse/attr.rs') diff --git a/src/libsyntax/parse/attr.rs b/src/libsyntax/parse/attr.rs index 34ac5c16841..5803c607191 100644 --- a/src/libsyntax/parse/attr.rs +++ b/src/libsyntax/parse/attr.rs @@ -24,7 +24,7 @@ pub trait parser_attr { fn parse_attribute_naked(style: ast::attr_style, lo: BytePos) -> ast::attribute; fn parse_inner_attrs_and_next() -> - {inner: ~[ast::attribute], next: ~[ast::attribute]}; + (~[ast::attribute], ~[ast::attribute]); fn parse_meta_item() -> @ast::meta_item; fn parse_meta_seq() -> ~[@ast::meta_item]; fn parse_optional_meta() -> ~[@ast::meta_item]; @@ -82,7 +82,7 @@ impl parser_attr for Parser { // is an inner attribute of the containing item or an outer attribute of // the first contained item until we see the semi). fn parse_inner_attrs_and_next() -> - {inner: ~[ast::attribute], next: ~[ast::attribute]} { + (~[ast::attribute], ~[ast::attribute]) { let mut inner_attrs: ~[ast::attribute] = ~[]; let mut next_outer_attrs: ~[ast::attribute] = ~[]; loop { @@ -121,7 +121,7 @@ impl parser_attr for Parser { _ => break } } - return {inner: inner_attrs, next: next_outer_attrs}; + (inner_attrs, next_outer_attrs) } fn parse_meta_item() -> @ast::meta_item { -- cgit 1.4.1-3-g733a5