std: remove str::{connect,concat}*.

This commit is contained in:
Huon Wilson
2013-06-10 23:25:25 +10:00
parent 5a711ea7c3
commit ccd0ac59e9
38 changed files with 62 additions and 86 deletions

View File

@@ -28,7 +28,7 @@ use core::to_bytes;
pub fn path_name_i(idents: &[ident]) -> ~str {
// FIXME: Bad copies (#2543 -- same for everything else that says "bad")
str::connect(idents.map(|i| copy *token::interner_get(i.name)), "::")
idents.map(|i| copy *token::interner_get(i.name)).connect("::")
}
pub fn path_to_ident(p: @Path) -> ident { copy *p.idents.last() }