Remove unused Map::hir_node_by_def_id method.
This commit is contained in:
@@ -110,7 +110,6 @@ impl<'a> FnKind<'a> {
|
||||
pub trait Map<'hir> {
|
||||
/// Retrieves the `Node` corresponding to `id`.
|
||||
fn hir_node(&self, hir_id: HirId) -> Node<'hir>;
|
||||
fn hir_node_by_def_id(&self, def_id: LocalDefId) -> Node<'hir>;
|
||||
fn body(&self, id: BodyId) -> &'hir Body<'hir>;
|
||||
fn item(&self, id: ItemId) -> &'hir Item<'hir>;
|
||||
fn trait_item(&self, id: TraitItemId) -> &'hir TraitItem<'hir>;
|
||||
@@ -123,9 +122,6 @@ impl<'hir> Map<'hir> for ! {
|
||||
fn hir_node(&self, _: HirId) -> Node<'hir> {
|
||||
unreachable!();
|
||||
}
|
||||
fn hir_node_by_def_id(&self, _: LocalDefId) -> Node<'hir> {
|
||||
*self;
|
||||
}
|
||||
fn body(&self, _: BodyId) -> &'hir Body<'hir> {
|
||||
unreachable!();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user