File tree 2 files changed +0
-8
lines changed
2 files changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,6 @@ impl<'a> FnKind<'a> {
110
110
pub trait Map < ' hir > {
111
111
/// Retrieves the `Node` corresponding to `id`.
112
112
fn hir_node ( & self , hir_id : HirId ) -> Node < ' hir > ;
113
- fn hir_node_by_def_id ( & self , def_id : LocalDefId ) -> Node < ' hir > ;
114
113
fn body ( & self , id : BodyId ) -> & ' hir Body < ' hir > ;
115
114
fn item ( & self , id : ItemId ) -> & ' hir Item < ' hir > ;
116
115
fn trait_item ( & self , id : TraitItemId ) -> & ' hir TraitItem < ' hir > ;
@@ -123,9 +122,6 @@ impl<'hir> Map<'hir> for ! {
123
122
fn hir_node ( & self , _: HirId ) -> Node < ' hir > {
124
123
unreachable ! ( ) ;
125
124
}
126
- fn hir_node_by_def_id ( & self , _: LocalDefId ) -> Node < ' hir > {
127
- * self ;
128
- }
129
125
fn body ( & self , _: BodyId ) -> & ' hir Body < ' hir > {
130
126
unreachable ! ( ) ;
131
127
}
Original file line number Diff line number Diff line change @@ -1019,10 +1019,6 @@ impl<'hir> intravisit::Map<'hir> for Map<'hir> {
1019
1019
self . tcx . hir_node ( hir_id)
1020
1020
}
1021
1021
1022
- fn hir_node_by_def_id ( & self , def_id : LocalDefId ) -> Node < ' hir > {
1023
- self . tcx . hir_node_by_def_id ( def_id)
1024
- }
1025
-
1026
1022
fn body ( & self , id : BodyId ) -> & ' hir Body < ' hir > {
1027
1023
( * self ) . body ( id)
1028
1024
}
You can’t perform that action at this time.
0 commit comments