Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir/src/lib.rs')
-rw-r--r--crates/hir/src/lib.rs20
1 files changed, 0 insertions, 20 deletions
diff --git a/crates/hir/src/lib.rs b/crates/hir/src/lib.rs
index acd53e19e8..5be54feb46 100644
--- a/crates/hir/src/lib.rs
+++ b/crates/hir/src/lib.rs
@@ -1022,26 +1022,6 @@ fn precise_macro_call_location(
MacroKind::Attr,
)
}
- MacroCallKind::DeriveAttr { ast_id, invoc_attr_index } => {
- let node = ast_id.to_node(db.upcast());
- let attr = collect_attrs(&node)
- .nth(invoc_attr_index.ast_index())
- .and_then(|x| Either::left(x.1))
- .unwrap_or_else(|| {
- panic!("cannot find attribute #{}", invoc_attr_index.ast_index())
- });
-
- (
- ast_id.with_value(SyntaxNodePtr::from(AstPtr::new(&attr))),
- Some(attr.syntax().text_range()),
- attr.path()
- .and_then(|path| path.segment())
- .and_then(|seg| seg.name_ref())
- .as_ref()
- .map(ToString::to_string),
- MacroKind::Attr,
- )
- }
}
}