diff options
| author | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2013-01-13 13:13:41 -0800 |
|---|---|---|
| committer | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2013-01-14 18:15:53 -0800 |
| commit | 530a113bfa2702b415e38f3168d5c95ee1d93718 (patch) | |
| tree | 042a0580b8982f8d466cb975a1aae75ac88436c9 /src/libsyntax/ext/auto_encode.rs | |
| parent | ebea895d026722e5887bd6544639152b87a80cc5 (diff) | |
| download | rust-530a113bfa2702b415e38f3168d5c95ee1d93718.tar.gz rust-530a113bfa2702b415e38f3168d5c95ee1d93718.zip | |
convert ast::item into a struct
Diffstat (limited to 'src/libsyntax/ext/auto_encode.rs')
| -rw-r--r-- | src/libsyntax/ext/auto_encode.rs | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/libsyntax/ext/auto_encode.rs b/src/libsyntax/ext/auto_encode.rs index a80a56fe4f1..35b5f4be9a4 100644 --- a/src/libsyntax/ext/auto_encode.rs +++ b/src/libsyntax/ext/auto_encode.rs @@ -121,8 +121,10 @@ fn expand_auto_encode( } fn filter_attrs(item: @ast::item) -> @ast::item { - @{attrs: item.attrs.filtered(|a| !is_auto_encode(a)), - .. *item} + @ast::item { + attrs: item.attrs.filtered(|a| !is_auto_encode(a)), + .. *item + } } do vec::flat_map(in_items) |item| { @@ -185,8 +187,10 @@ fn expand_auto_decode( } fn filter_attrs(item: @ast::item) -> @ast::item { - @{attrs: item.attrs.filtered(|a| !is_auto_decode(a)), - .. *item} + @ast::item { + attrs: item.attrs.filtered(|a| !is_auto_decode(a)), + .. *item + } } do vec::flat_map(in_items) |item| { @@ -444,7 +448,7 @@ fn mk_impl( tps.map(|tp| cx.ty_path(span, ~[tp.ident], ~[])) ); - @{ + @ast::item { // This is a new-style impl declaration. // XXX: clownshoes ident: parse::token::special_idents::clownshoes_extensions, |
