Print something when we can't figure out a tag name. Mitigates #876.
This commit is contained in:
parent
b9267e8fbc
commit
c84b8e90b8
2 changed files with 2 additions and 5 deletions
|
@ -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) {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// -*- rust -*-
|
||||
// xfail-test
|
||||
// error-pattern:mismatch
|
||||
// error-pattern:option::t
|
||||
use std;
|
||||
import std::vec::*;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue