Skip to content

Commit

Permalink
paper over #2586 by not failing when the key is not found
Browse files Browse the repository at this point in the history
  • Loading branch information
nikomatsakis committed Jul 6, 2012
1 parent ee0177b commit 11d868e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/rustc/util/ppaux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]) }
}
}
none {
// FIXME(#2586)
#fmt["<unknown-%d>", node_id]
}
_ { cx.sess.bug(
#fmt["re_scope refers to %s",
ast_map::node_id_to_str(cx.items, node_id)]) }
Expand Down

0 comments on commit 11d868e

Please sign in to comment.