Make ast_util::path_name_i take a slice vector, eliminate a bad copy
This commit is contained in:
@@ -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)), ~"::")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user