1
Fork 0

Print something when we can't figure out a tag name. Mitigates #876.

This commit is contained in:
Michael Sullivan 2011-09-13 11:45:16 -04:00
parent b9267e8fbc
commit c84b8e90b8
2 changed files with 2 additions and 5 deletions

View file

@ -31,10 +31,7 @@ fn get_id_ident(cx: ctxt, id: ast::def_id) -> str {
if id.crate != ast::local_crate {
alt cx.ext_map.find(id) {
some(j) { str::connect(j, "::") }
_ {
fail "get_id_ident: can't find item in ext_map, id.crate = " +
int::str(id.crate)
}
none. { "<#" + int::str(id.crate) + ":" + int::str(id.node) + ">" }
}
} else {
alt cx.items.find(id.node) {

View file

@ -1,6 +1,6 @@
// -*- rust -*-
// xfail-test
// error-pattern:mismatch
// error-pattern:option::t
use std;
import std::vec::*;