diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-03-07 16:38:39 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-03-12 09:54:25 +1100 |
| commit | d7029d7e2dbd1b2b4f6578e632e2cef8bd4ba0cc (patch) | |
| tree | 11b56b76d927fe145b1db095f4699233dcafac77 | |
| parent | 6650252439d4e03368b305c42a10006e36f1545e (diff) | |
| download | rust-d7029d7e2dbd1b2b4f6578e632e2cef8bd4ba0cc.tar.gz rust-d7029d7e2dbd1b2b4f6578e632e2cef8bd4ba0cc.zip | |
Remove unused `OwnerNode::ident` method.
| -rw-r--r-- | compiler/rustc_hir/src/hir.rs | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/compiler/rustc_hir/src/hir.rs b/compiler/rustc_hir/src/hir.rs index 53f0194091c..38af4997192 100644 --- a/compiler/rustc_hir/src/hir.rs +++ b/compiler/rustc_hir/src/hir.rs @@ -4332,16 +4332,6 @@ pub enum OwnerNode<'hir> { } impl<'hir> OwnerNode<'hir> { - pub fn ident(&self) -> Option<Ident> { - match self { - OwnerNode::Item(Item { ident, .. }) - | OwnerNode::ForeignItem(ForeignItem { ident, .. }) - | OwnerNode::ImplItem(ImplItem { ident, .. }) - | OwnerNode::TraitItem(TraitItem { ident, .. }) => Some(*ident), - OwnerNode::Crate(..) | OwnerNode::Synthetic => None, - } - } - pub fn span(&self) -> Span { match self { OwnerNode::Item(Item { span, .. }) |
