We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
OwnerNode::ident
1 parent 6650252 commit d7029d7Copy full SHA for d7029d7
compiler/rustc_hir/src/hir.rs
@@ -4332,16 +4332,6 @@ pub enum OwnerNode<'hir> {
4332
}
4333
4334
impl<'hir> OwnerNode<'hir> {
4335
- pub fn ident(&self) -> Option<Ident> {
4336
- match self {
4337
- OwnerNode::Item(Item { ident, .. })
4338
- | OwnerNode::ForeignItem(ForeignItem { ident, .. })
4339
- | OwnerNode::ImplItem(ImplItem { ident, .. })
4340
- | OwnerNode::TraitItem(TraitItem { ident, .. }) => Some(*ident),
4341
- OwnerNode::Crate(..) | OwnerNode::Synthetic => None,
4342
- }
4343
4344
-
4345
pub fn span(&self) -> Span {
4346
match self {
4347
OwnerNode::Item(Item { span, .. })
0 commit comments