From 92d39fe4d5e5ad3d2c2dcafe45eaf6e23edddfd7 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Sun, 12 May 2013 00:25:31 -0400 Subject: syntax: Remove #[allow(vecs_implicitly_copyable)] --- src/libsyntax/ast_map.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/libsyntax/ast_map.rs') diff --git a/src/libsyntax/ast_map.rs b/src/libsyntax/ast_map.rs index 72e9a3d2cd0..e9f15c0a8f5 100644 --- a/src/libsyntax/ast_map.rs +++ b/src/libsyntax/ast_map.rs @@ -60,12 +60,12 @@ pub fn path_to_str_with_sep(p: &[path_elt], sep: ~str, itr: @ident_interner) str::connect(strs, sep) } -pub fn path_ident_to_str(p: path, i: ident, itr: @ident_interner) -> ~str { - if vec::is_empty(p) { +pub fn path_ident_to_str(p: &path, i: ident, itr: @ident_interner) -> ~str { + if vec::is_empty(*p) { //FIXME /* FIXME (#2543) */ copy *i copy *itr.get(i) } else { - fmt!("%s::%s", path_to_str(p, itr), *itr.get(i)) + fmt!("%s::%s", path_to_str(*p, itr), *itr.get(i)) } } @@ -338,7 +338,7 @@ pub fn node_id_to_str(map: map, id: node_id, itr: @ident_interner) -> ~str { fmt!("unknown node (id=%d)", id) } Some(&node_item(item, path)) => { - let path_str = path_ident_to_str(*path, item.ident, itr); + let path_str = path_ident_to_str(path, item.ident, itr); let item_str = match item.node { item_const(*) => ~"const", item_fn(*) => ~"fn", @@ -355,7 +355,7 @@ pub fn node_id_to_str(map: map, id: node_id, itr: @ident_interner) -> ~str { } Some(&node_foreign_item(item, abi, _, path)) => { fmt!("foreign item %s with abi %? (id=%?)", - path_ident_to_str(*path, item.ident, itr), abi, id) + path_ident_to_str(path, item.ident, itr), abi, id) } Some(&node_method(m, _, path)) => { fmt!("method %s in %s (id=%?)", -- cgit 1.4.1-3-g733a5