about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2013-01-11 15:18:01 -0800
committerTim Chevalier <chevalier@alum.wellesley.edu>2013-01-11 15:19:05 -0800
commitcfa62cd5ee65a466e88a6fabf92079e9b85f43e5 (patch)
tree6b77995593e77d1ea0c1b04aff734ca8dd299fd7 /src/libsyntax
parent1b1700f44b88225bc3557e1ca497644b9852e268 (diff)
downloadrust-cfa62cd5ee65a466e88a6fabf92079e9b85f43e5.tar.gz
rust-cfa62cd5ee65a466e88a6fabf92079e9b85f43e5.zip
Make ast_util::path_name_i take a slice vector, eliminate a bad copy
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/ast_util.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/ast_util.rs b/src/libsyntax/ast_util.rs
index 1a34fe29a71..898c89ff2c8 100644
--- a/src/libsyntax/ast_util.rs
+++ b/src/libsyntax/ast_util.rs
@@ -46,7 +46,7 @@ pure fn dummy_sp() -> span { return mk_sp(BytePos(0), BytePos(0)); }
 
 
 
-pure fn path_name_i(idents: ~[ident], intr: @token::ident_interner) -> ~str {
+pure fn path_name_i(idents: &[ident], intr: @token::ident_interner) -> ~str {
     // FIXME: Bad copies (#2543 -- same for everything else that says "bad")
     str::connect(idents.map(|i| *intr.get(*i)), ~"::")
 }