diff options
| author | bors <bors@rust-lang.org> | 2013-02-18 17:48:34 -0800 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-02-18 17:48:34 -0800 |
| commit | 9ba2e65fd6892d2200b517d11e95870e4b2ece12 (patch) | |
| tree | b8f600723bad0a0acc8c29c13293802ed9f26d3a /src/libsyntax/ext | |
| parent | d0b5016af2647446a61100f373471ef749e7b704 (diff) | |
| parent | 5b5ac331db98bdcf74124e7b55309501e080146d (diff) | |
| download | rust-9ba2e65fd6892d2200b517d11e95870e4b2ece12.tar.gz rust-9ba2e65fd6892d2200b517d11e95870e4b2ece12.zip | |
auto merge of #5004 : luqmana/rust/rename-use-import, r=catamorphism
Seems like my previous pull request got lost along the way somehow. So here it is updated.
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 6638a47ebf8..6c461738798 100644 --- a/src/libsyntax/ext/pipes/ast_builder.rs +++ b/src/libsyntax/ext/pipes/ast_builder.rs @@ -319,7 +319,7 @@ pub impl ext_ctxt_ast_builder for ext_ctxt { // 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"), |
