diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2013-11-20 16:23:04 -0800 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2013-11-26 08:24:18 -0800 |
| commit | efc512362b0f2ae200ef079e3566c6b158a857cc (patch) | |
| tree | f13bd8c52a12ebff5bc304312aa9708bf34780dc /src/libsyntax/ext/build.rs | |
| parent | a61a3678ebe5571842d4223e2a0313714893bbf7 (diff) | |
libsyntax: Remove all non-`proc` `do` syntax.
Diffstat (limited to 'src/libsyntax/ext/build.rs')
| -rw-r--r-- | src/libsyntax/ext/build.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libsyntax/ext/build.rs b/src/libsyntax/ext/build.rs index 5ae158045e0..2a7f6dfe2d2 100644 --- a/src/libsyntax/ext/build.rs +++ b/src/libsyntax/ext/build.rs @@ -370,9 +370,9 @@ impl AstBuilder for @ExtCtxt { } fn strip_bounds(&self, generics: &Generics) -> Generics { - let new_params = do generics.ty_params.map |ty_param| { + let new_params = generics.ty_params.map(|ty_param| { ast::TyParam { bounds: opt_vec::Empty, ..*ty_param } - }; + }); Generics { ty_params: new_params, .. (*generics).clone() @@ -883,9 +883,9 @@ impl AstBuilder for @ExtCtxt { fn view_use_list(&self, sp: Span, vis: ast::visibility, path: ~[ast::Ident], imports: &[ast::Ident]) -> ast::view_item { - let imports = do imports.map |id| { + let imports = imports.map(|id| { respan(sp, ast::path_list_ident_ { name: *id, id: ast::DUMMY_NODE_ID }) - }; + }); self.view_use(sp, vis, ~[@respan(sp, |
