- format!("{} {}{}", item_str, path_str(), id_str)
+ format!("{} {}{}", item_str, path_str(item.owner_id.def_id), id_str)
+ }
+ Some(Node::ForeignItem(item)) => {
+ format!("foreign item {}{}", path_str(item.owner_id.def_id), id_str)
+ }
+ Some(Node::ImplItem(ii)) => {
+ let kind = match ii.kind {
+ ImplItemKind::Const(..) => "assoc const",
+ ImplItemKind::Fn(..) => "method",
+ ImplItemKind::Type(_) => "assoc type",
+ };
+ format!("{} {} in {}{}", kind, ii.ident, path_str(ii.owner_id.def_id), id_str)