Remove unused opt_local_def_id_to_hir_id
function
Found while investigating #82933 - all LocalDefIds are expected to have HirIds, there's no point in pretending otherwise.
This commit is contained in:
parent
5c6d3bf389
commit
e161a2fd73
2 changed files with 0 additions and 10 deletions
|
@ -342,11 +342,6 @@ impl Definitions {
|
|||
self.def_id_to_hir_id[id].unwrap()
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn opt_local_def_id_to_hir_id(&self, id: LocalDefId) -> Option<hir::HirId> {
|
||||
self.def_id_to_hir_id[id]
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn opt_hir_id_to_local_def_id(&self, hir_id: hir::HirId) -> Option<LocalDefId> {
|
||||
self.hir_id_to_def_id.get(&hir_id).copied()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue