]> git.lizzy.rs Git - rust.git/commitdiff
Don't try to print missing HIR ids
authorJohn Kåre Alsaker <john.kare.alsaker@gmail.com>
Thu, 20 Feb 2020 18:24:44 +0000 (19:24 +0100)
committerJohn Kåre Alsaker <john.kare.alsaker@gmail.com>
Sat, 14 Mar 2020 21:52:31 +0000 (22:52 +0100)
src/librustc/hir/map/hir_id_validator.rs

index c4c23c1a75445000b2284a1aa8cc898d09db059d..796f489547269a0b36daa73c7a82a59cc16c027d 100644 (file)
@@ -111,9 +111,9 @@ fn check<F: FnOnce(&mut HirIdValidator<'a, 'hir>)>(&mut self, hir_id: HirId, wal
                 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(|| {