libsyntax: Remove the interner_get function and all uses

This commit is contained in:
Patrick Walton
2014-01-31 16:10:06 -08:00
committed by Huon Wilson
parent a695b62118
commit e5dc347ccf
5 changed files with 13 additions and 34 deletions

View File

@@ -25,7 +25,10 @@ use std::num;
pub fn path_name_i(idents: &[Ident]) -> ~str {
// FIXME: Bad copies (#2543 -- same for everything else that says "bad")
idents.map(|i| token::interner_get(i.name)).connect("::")
idents.map(|i| {
let string = token::get_ident(i.name);
string.get().to_str()
}).connect("::")
}
// totally scary function: ignores all but the last element, should have