1
Fork 0

Don't try to print missing HIR ids

This commit is contained in:
John Kåre Alsaker 2020-02-20 19:24:44 +01:00
commit 2af085d34f

View file

@ -111,9 +111,9 @@ impl<'a, 'hir> HirIdValidator<'a, 'hir> {
trace!("missing hir id {:#?}", hir_id);
missing_items.push(format!(
"[local_id: {}, node:{}]",
"[local_id: {}, owner: {}]",
local_id,
self.hir_map.node_to_string(hir_id)
self.hir_map.def_path(DefId::local(owner_def_index)).to_string_no_crate()
));
}
self.error(|| {