Skip to content

Commit 2af085d

Browse files
committed
Don't try to print missing HIR ids
1 parent 8b8041e commit 2af085d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc/hir/map/hir_id_validator.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,9 @@ impl<'a, 'hir> HirIdValidator<'a, 'hir> {
111111
trace!("missing hir id {:#?}", hir_id);
112112

113113
missing_items.push(format!(
114-
"[local_id: {}, node:{}]",
114+
"[local_id: {}, owner: {}]",
115115
local_id,
116-
self.hir_map.node_to_string(hir_id)
116+
self.hir_map.def_path(DefId::local(owner_def_index)).to_string_no_crate()
117117
));
118118
}
119119
self.error(|| {

0 commit comments

Comments
 (0)