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 5d93522 commit df74dddCopy full SHA for df74ddd
src/libsyntax/ast_util.rs
@@ -30,6 +30,8 @@ pub fn path_name_i(idents: &[ident]) -> ~str {
30
idents.map(|i| token::interner_get(i.name)).connect("::")
31
}
32
33
+// totally scary function: ignores all but the last element, should have
34
+// a different name
35
pub fn path_to_ident(p: @Path) -> ident { copy *p.idents.last() }
36
37
pub fn local_def(id: node_id) -> def_id {
0 commit comments