diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-02-03 10:54:00 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-02-17 09:53:27 +1100 |
| commit | cd1d84cdf76e86f2647eb7fd157047b73e76bdf5 (patch) | |
| tree | 0f433723faa8a8ac2e202ef9b8972dfd7f152b1b /compiler/rustc_middle/src/hir/map.rs | |
| parent | 6021ba0668a00fde339936f32a4f58fa4dace876 (diff) | |
| download | rust-cd1d84cdf76e86f2647eb7fd157047b73e76bdf5.tar.gz rust-cd1d84cdf76e86f2647eb7fd157047b73e76bdf5.zip | |
Remove unused `Map::hir_node_by_def_id` method.
Diffstat (limited to 'compiler/rustc_middle/src/hir/map.rs')
| -rw-r--r-- | compiler/rustc_middle/src/hir/map.rs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/compiler/rustc_middle/src/hir/map.rs b/compiler/rustc_middle/src/hir/map.rs index 83c7bb0f52f..2c5deecd746 100644 --- a/compiler/rustc_middle/src/hir/map.rs +++ b/compiler/rustc_middle/src/hir/map.rs @@ -1019,10 +1019,6 @@ impl<'hir> intravisit::Map<'hir> for Map<'hir> { self.tcx.hir_node(hir_id) } - fn hir_node_by_def_id(&self, def_id: LocalDefId) -> Node<'hir> { - self.tcx.hir_node_by_def_id(def_id) - } - fn body(&self, id: BodyId) -> &'hir Body<'hir> { (*self).body(id) } |
