diff options
| author | ljedrz <ljedrz@gmail.com> | 2019-06-20 09:51:00 +0200 |
|---|---|---|
| committer | ljedrz <ljedrz@gmail.com> | 2019-06-20 12:47:26 +0200 |
| commit | 21e63dddbeca3ab15cf365f9bd8dbb8a188c1d9b (patch) | |
| tree | e0ca9086bf9e43eee098714b5d4a76eb84f72ab5 /src | |
| parent | 3ed75856352d6d1731eb47a2206fdc5633688451 (diff) | |
remove definitions::def_index_to_node_id (unused)
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc/hir/map/definitions.rs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/librustc/hir/map/definitions.rs b/src/librustc/hir/map/definitions.rs index 6a561f0c63a..b4bda36bc8a 100644 --- a/src/librustc/hir/map/definitions.rs +++ b/src/librustc/hir/map/definitions.rs @@ -397,11 +397,6 @@ impl Definitions { self.node_to_hir_id[node_id] } - #[inline] - pub fn def_index_to_node_id(&self, def_index: DefIndex) -> ast::NodeId { - self.as_local_node_id(DefId::local(def_index)).unwrap() - } - /// Retrieves the span of the given `DefId` if `DefId` is in the local crate, the span exists /// and it's not `DUMMY_SP`. #[inline] |
