We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b722dc3 commit f62add9Copy full SHA for f62add9
src/comp/util/ppaux.rs
@@ -44,7 +44,11 @@ fn fn_ident_to_string(id: ast::node_id, i: &ast::fn_ident) -> istr {
44
45
fn get_id_ident(cx: &ctxt, id: ast::def_id) -> istr {
46
if id.crate != ast::local_crate {
47
- istr::connect(cx.ext_map.get(id), ~"::")
+ alt cx.ext_map.find(id) {
48
+ some(j) { istr::connect(j, ~"::") }
49
+ _ { fail ("get_id_ident: can't find item in ext_map, id.crate = "
50
+ + istr::to_estr(int::str(id.crate))) }
51
+ }
52
} else {
53
alt cx.items.find(id.node) {
54
some(ast_map::node_item(it)) { it.ident }
0 commit comments