paper over #2586 by not failing when the key is not found

This commit is contained in:
Niko Matsakis 2012-07-06 13:59:17 -07:00
parent ee0177b908
commit 11d868e925

View File

@ -52,6 +52,10 @@ fn re_scope_id_to_str(cx: ctxt, node_id: ast::node_id) -> str {
ast_map::node_id_to_str(cx.items, node_id)]) } ast_map::node_id_to_str(cx.items, node_id)]) }
} }
} }
none {
// FIXME(#2586)
#fmt["<unknown-%d>", node_id]
}
_ { cx.sess.bug( _ { cx.sess.bug(
#fmt["re_scope refers to %s", #fmt["re_scope refers to %s",
ast_map::node_id_to_str(cx.items, node_id)]) } ast_map::node_id_to_str(cx.items, node_id)]) }