diff options
| author | Luqman Aden <laden@csclub.uwaterloo.ca> | 2013-02-17 21:45:00 -0500 |
|---|---|---|
| committer | Luqman Aden <laden@csclub.uwaterloo.ca> | 2013-02-17 21:45:00 -0500 |
| commit | 0f09c106f00d774a6e59b1245edcc536cc2bf459 (patch) | |
| tree | ca2ef1c6451bbad24cb29f87a759e4e45c93783a /src/libsyntax/ext | |
| parent | a6945f2a45d56ef692cd8f2955dcef4e4c10d50a (diff) | |
| download | rust-0f09c106f00d774a6e59b1245edcc536cc2bf459.tar.gz rust-0f09c106f00d774a6e59b1245edcc536cc2bf459.zip | |
libsyntax: Update view_item_use/import to reflect actual usage
Diffstat (limited to 'src/libsyntax/ext')
| -rw-r--r-- | src/libsyntax/ext/build.rs | 2 | ||||
| -rw-r--r-- | src/libsyntax/ext/pipes/ast_builder.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/ext/build.rs b/src/libsyntax/ext/build.rs index 963ea5bfe33..0a6840ceea0 100644 --- a/src/libsyntax/ext/build.rs +++ b/src/libsyntax/ext/build.rs @@ -192,7 +192,7 @@ pub fn mk_glob_use(cx: ext_ctxt, node: ast::view_path_glob(mk_raw_path(sp, path), cx.next_id()), span: sp, }; - @ast::view_item { node: ast::view_item_import(~[glob]), + @ast::view_item { node: ast::view_item_use(~[glob]), attrs: ~[], vis: ast::private, span: sp } diff --git a/src/libsyntax/ext/pipes/ast_builder.rs b/src/libsyntax/ext/pipes/ast_builder.rs index 12e5f1891aa..ea090f008fc 100644 --- a/src/libsyntax/ext/pipes/ast_builder.rs +++ b/src/libsyntax/ext/pipes/ast_builder.rs @@ -310,7 +310,7 @@ pub impl ext_ctxt_ast_builder for ext_ctxt { +items: ~[@ast::item]) -> @ast::item { // XXX: Total hack: import `core::kinds::Owned` to work around a // parser bug whereby `fn f<T: ::kinds::Owned>` doesn't parse. - let vi = ast::view_item_import(~[ + let vi = ast::view_item_use(~[ @codemap::spanned { node: ast::view_path_simple( self.ident_of(~"Owned"), |
