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.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/crates/hir/src/lib.rs b/crates/hir/src/lib.rs
index 15a0967b3d..2585d8e6f4 100644
--- a/crates/hir/src/lib.rs
+++ b/crates/hir/src/lib.rs
@@ -972,7 +972,8 @@ fn precise_macro_call_location(
MacroKind::ProcMacro,
)
}
- MacroCallKind::Derive { ast_id, derive_attr_index, derive_index } => {
+ // TODO: derive_macro_id
+ MacroCallKind::Derive { ast_id, derive_attr_index, derive_index, derive_macro_id } => {
let node = ast_id.to_node(db.upcast());
// Compute the precise location of the macro name's token in the derive
// list.
@@ -3709,7 +3710,8 @@ impl Impl {
let macro_file = src.file_id.macro_file()?;
let loc = macro_file.macro_call_id.lookup(db.upcast());
let (derive_attr, derive_index) = match loc.kind {
- MacroCallKind::Derive { ast_id, derive_attr_index, derive_index } => {
+ // TODO: derive_macro_id
+ MacroCallKind::Derive { ast_id, derive_attr_index, derive_index, derive_macro_id } => {
let module_id = self.id.lookup(db.upcast()).container;
(
db.crate_def_map(module_id.krate())[module_id.local_id]