]> git.lizzy.rs Git - rust.git/blobdiff - src/libsyntax/ast_util.rs
remove `get_ident` and `get_name`, make `as_str` sound
[rust.git] / src / libsyntax / ast_util.rs
index 6b38762316cdc529cf4bc1bd05b2926a75c0e4d9..83d3c9c4ec5ead137b3d52e35b45ce142b4961e7 100644 (file)
@@ -25,9 +25,7 @@
 
 pub fn path_name_i(idents: &[Ident]) -> String {
     // FIXME: Bad copies (#2543 -- same for everything else that says "bad")
-    idents.iter().map(|i| {
-        token::get_ident(*i).to_string()
-    }).collect::<Vec<String>>().join("::")
+    idents.iter().map(|i| i.to_string()).collect::<Vec<String>>().join("::")
 }
 
 pub fn local_def(id: NodeId) -> DefId {