Skip to content

Commit c84b8e9

Browse files
committed
Print something when we can't figure out a tag name. Mitigates #876.
1 parent b9267e8 commit c84b8e9

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/comp/util/ppaux.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,7 @@ fn get_id_ident(cx: ctxt, id: ast::def_id) -> str {
3131
if id.crate != ast::local_crate {
3232
alt cx.ext_map.find(id) {
3333
some(j) { str::connect(j, "::") }
34-
_ {
35-
fail "get_id_ident: can't find item in ext_map, id.crate = " +
36-
int::str(id.crate)
37-
}
34+
none. { "<#" + int::str(id.crate) + ":" + int::str(id.node) + ">" }
3835
}
3936
} else {
4037
alt cx.items.find(id.node) {

src/test/compile-fail/tag-that-dare-not-speak-its-name.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// -*- rust -*-
22
// xfail-test
3-
// error-pattern:mismatch
3+
// error-pattern:option::t
44
use std;
55
import std::vec::*;
66

0 commit comments

Comments
 (0)