We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98b3052 commit 7fcfe7bCopy full SHA for 7fcfe7b
src/libsyntax/ast_util.rs
@@ -27,6 +27,8 @@ pub fn path_name_i(idents: &[ident]) -> ~str {
27
idents.map(|i| token::interner_get(i.name)).connect("::")
28
}
29
30
+// totally scary function: ignores all but the last element, should have
31
+// a different name
32
pub fn path_to_ident(p: &Path) -> ident { copy *p.idents.last() }
33
34
pub fn local_def(id: node_id) -> def_id {
0 commit comments