diff --git a/compiler/rustc_hir/src/definitions.rs b/compiler/rustc_hir/src/definitions.rs index b7bdc9a1414a..ca29351455e6 100644 --- a/compiler/rustc_hir/src/definitions.rs +++ b/compiler/rustc_hir/src/definitions.rs @@ -92,12 +92,6 @@ impl DefPathTable { .iter_enumerated() .map(move |(index, key)| (index, key, &self.def_path_hashes[index])) } - - pub fn all_def_path_hashes_and_def_ids( - &self, - ) -> impl Iterator + '_ { - self.def_path_hashes.iter_enumerated().map(move |(index, hash)| (hash, index)) - } } /// The definition table containing node definitions.