From 11d868e92538e34c84593df0b891a4185c4520be Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Fri, 6 Jul 2012 13:59:17 -0700 Subject: [PATCH] paper over #2586 by not failing when the key is not found --- src/rustc/util/ppaux.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/rustc/util/ppaux.rs b/src/rustc/util/ppaux.rs index c8238d6b057..86a2eb65b90 100644 --- a/src/rustc/util/ppaux.rs +++ b/src/rustc/util/ppaux.rs @@ -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["", node_id] + } _ { cx.sess.bug( #fmt["re_scope refers to %s", ast_map::node_id_to_str(cx.items, node_id)]) }