hash
}
+ /// Used by librustdoc for fake DefIds.
pub fn num_def_ids(&self) -> usize {
self.index_to_key.len()
}
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