Skip to content

Commit b9396b7

Browse files
committed
---
yaml --- r: 5044 b: refs/heads/master c: f62add9 h: refs/heads/master v: v3
1 parent 9f18334 commit b9396b7

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: b722dc36a5b3db7e3b8445103644d1a23c85796d
2+
refs/heads/master: f62add95da3ad499103f296f1d05a556b842315c

trunk/src/comp/util/ppaux.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,11 @@ fn fn_ident_to_string(id: ast::node_id, i: &ast::fn_ident) -> istr {
4444

4545
fn get_id_ident(cx: &ctxt, id: ast::def_id) -> istr {
4646
if id.crate != ast::local_crate {
47-
istr::connect(cx.ext_map.get(id), ~"::")
47+
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+
}
4852
} else {
4953
alt cx.items.find(id.node) {
5054
some(ast_map::node_item(it)) { it.ident }

0 commit comments

Comments
 (0)