diff options
| author | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2013-01-13 11:15:14 -0800 |
|---|---|---|
| committer | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2013-01-14 18:14:16 -0800 |
| commit | e1f1a1204ad3a68a90490fcad69ab2c3e6be4086 (patch) | |
| tree | 99dd5fde4f690f4b1f399f5e1ea7cad309b3e6bc /src/libsyntax/ext | |
| parent | df7d376d257858debdc29c954c6d2fb3d9ef2334 (diff) | |
| download | rust-e1f1a1204ad3a68a90490fcad69ab2c3e6be4086.tar.gz rust-e1f1a1204ad3a68a90490fcad69ab2c3e6be4086.zip | |
change ast::ty_param into a struct.
Diffstat (limited to 'src/libsyntax/ext')
| -rw-r--r-- | src/libsyntax/ext/auto_encode.rs | 4 | ||||
| -rw-r--r-- | src/libsyntax/ext/build.rs | 2 | ||||
| -rw-r--r-- | src/libsyntax/ext/pipes/ast_builder.rs | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/libsyntax/ext/auto_encode.rs b/src/libsyntax/ext/auto_encode.rs index bc28e836802..a80a56fe4f1 100644 --- a/src/libsyntax/ext/auto_encode.rs +++ b/src/libsyntax/ext/auto_encode.rs @@ -251,7 +251,7 @@ priv impl ext_ctxt { span: span, }); - { + ast::ty_param { ident: ident, id: self.next_id(), bounds: @vec::append(~[bound], *bounds) @@ -425,7 +425,7 @@ fn mk_impl( span: span, }); - { + ast::ty_param { ident: tp.ident, id: cx.next_id(), bounds: @vec::append(~[t_bound], *tp.bounds) diff --git a/src/libsyntax/ext/build.rs b/src/libsyntax/ext/build.rs index a50952f75e7..9160a8b0a33 100644 --- a/src/libsyntax/ext/build.rs +++ b/src/libsyntax/ext/build.rs @@ -313,6 +313,6 @@ fn mk_ty_param(cx: ext_ctxt, ident: ast::ident, bounds: @~[ast::ty_param_bound]) -> ast::ty_param { - { ident: ident, id: cx.next_id(), bounds: bounds } + ast::ty_param { ident: ident, id: cx.next_id(), bounds: bounds } } diff --git a/src/libsyntax/ext/pipes/ast_builder.rs b/src/libsyntax/ext/pipes/ast_builder.rs index 1b32ccc43d8..a6063b033cb 100644 --- a/src/libsyntax/ext/pipes/ast_builder.rs +++ b/src/libsyntax/ext/pipes/ast_builder.rs @@ -177,7 +177,7 @@ impl ext_ctxt: ext_ctxt_ast_builder { fn ty_param(id: ast::ident, +bounds: ~[ast::ty_param_bound]) -> ast::ty_param { - {ident: id, id: self.next_id(), bounds: @bounds} + ast::ty_param { ident: id, id: self.next_id(), bounds: @bounds } } fn arg(name: ident, ty: @ast::Ty) -> ast::arg { |
