libsyntax: Update view_item_use/import to reflect actual usage

This commit is contained in:
Luqman Aden
2013-02-17 21:45:00 -05:00
parent a6945f2a45
commit 0f09c106f0
11 changed files with 43 additions and 41 deletions

View File

@@ -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"),