diff options
| author | faineance <faineance@users.noreply.github.com> | 2015-11-28 19:02:07 +0000 |
|---|---|---|
| committer | faineance <faineance@users.noreply.github.com> | 2015-12-14 21:15:01 +0000 |
| commit | ec8ea22c7f59fd898670060bceb6810cef68ca0a (patch) | |
| tree | f16a49f657067f0503bee1673d087d4276bdb8d7 /src/libsyntax/ext | |
| parent | 9ea4b4f01f54ec741509c624a8aa62d7a47f7eac (diff) | |
| download | rust-ec8ea22c7f59fd898670060bceb6810cef68ca0a.tar.gz rust-ec8ea22c7f59fd898670060bceb6810cef68ca0a.zip | |
[breaking-change] move ast_util functions to methods
Diffstat (limited to 'src/libsyntax/ext')
| -rw-r--r-- | src/libsyntax/ext/build.rs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/libsyntax/ext/build.rs b/src/libsyntax/ext/build.rs index 806f5a7ee22..cdc9cb02453 100644 --- a/src/libsyntax/ext/build.rs +++ b/src/libsyntax/ext/build.rs @@ -11,7 +11,6 @@ use abi; use ast::{Ident, Generics, Expr}; use ast; -use ast_util; use attr; use codemap::{Span, respan, Spanned, DUMMY_SP, Pos}; use ext::base::ExtCtxt; @@ -991,7 +990,7 @@ impl<'a> AstBuilder for ExtCtxt<'a> { name, inputs, output, - ast_util::empty_generics(), + Generics::default(), body) } @@ -1029,7 +1028,7 @@ impl<'a> AstBuilder for ExtCtxt<'a> { fn item_enum(&self, span: Span, name: Ident, enum_definition: ast::EnumDef) -> P<ast::Item> { self.item_enum_poly(span, name, enum_definition, - ast_util::empty_generics()) + Generics::default()) } fn item_struct(&self, span: Span, name: Ident, @@ -1038,7 +1037,7 @@ impl<'a> AstBuilder for ExtCtxt<'a> { span, name, struct_def, - ast_util::empty_generics() + Generics::default() ) } @@ -1086,7 +1085,7 @@ impl<'a> AstBuilder for ExtCtxt<'a> { } fn item_ty(&self, span: Span, name: Ident, ty: P<ast::Ty>) -> P<ast::Item> { - self.item_ty_poly(span, name, ty, ast_util::empty_generics()) + self.item_ty_poly(span, name, ty, Generics::default()) } fn attribute(&self, sp: Span, mi: P<ast::MetaItem>) -> ast::Attribute { |
