Skip to content

Commit 7fcfe7b

Browse files
committed
comment
1 parent 98b3052 commit 7fcfe7b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libsyntax/ast_util.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ pub fn path_name_i(idents: &[ident]) -> ~str {
2727
idents.map(|i| token::interner_get(i.name)).connect("::")
2828
}
2929

30+
// totally scary function: ignores all but the last element, should have
31+
// a different name
3032
pub fn path_to_ident(p: &Path) -> ident { copy *p.idents.last() }
3133

3234
pub fn local_def(id: node_id) -> def_id {

0 commit comments

Comments
 (0)