We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ed7585 commit 21e63ddCopy full SHA for 21e63dd
src/librustc/hir/map/definitions.rs
@@ -397,11 +397,6 @@ impl Definitions {
397
self.node_to_hir_id[node_id]
398
}
399
400
- #[inline]
401
- pub fn def_index_to_node_id(&self, def_index: DefIndex) -> ast::NodeId {
402
- self.as_local_node_id(DefId::local(def_index)).unwrap()
403
- }
404
-
405
/// Retrieves the span of the given `DefId` if `DefId` is in the local crate, the span exists
406
/// and it's not `DUMMY_SP`.
407
#[inline]
0 commit comments