]> git.proxmox.com Git - rustc.git/blobdiff - compiler/rustc_hir/src/definitions.rs
New upstream version 1.53.0+dfsg1
[rustc.git] / compiler / rustc_hir / src / definitions.rs
index 3266dfac702babbc70e40418777d786ac6039c8a..0f77de9fb250fed5d7764b0404e8ce07f9d9d68f 100644 (file)
@@ -87,6 +87,7 @@ impl DefPathTable {
         hash
     }
 
+    /// Used by librustdoc for fake DefIds.
     pub fn num_def_ids(&self) -> usize {
         self.index_to_key.len()
     }
@@ -319,12 +320,6 @@ impl Definitions {
         self.table.def_path_hash(id.local_def_index)
     }
 
-    #[inline]
-    pub fn def_path_hash_to_def_id(&self, def_path_hash: DefPathHash) -> LocalDefId {
-        let local_def_index = self.table.def_path_hash_to_index[&def_path_hash];
-        LocalDefId { local_def_index }
-    }
-
     /// Returns the path from the crate root to `index`. The root
     /// nodes are not included in the path (i.e., this will be an
     /// empty vector for the crate root). For an inlined item, this