diff options
author | Jonas Schievink <[email protected]> | 2021-04-09 12:38:01 +0100 |
---|---|---|
committer | Jonas Schievink <[email protected]> | 2021-04-09 12:38:01 +0100 |
commit | c0dd36fd425416f5465abf7f12f5d3a14b35751d (patch) | |
tree | 3fc19fa9306afd69bf5702919237753c94337007 /crates/hir_def/src/nameres.rs | |
parent | 546da15972312f62be8a64a409d39a8d96ed53a6 (diff) |
Store `#[derive]` attribute ID along macro invoc
Diffstat (limited to 'crates/hir_def/src/nameres.rs')
-rw-r--r-- | crates/hir_def/src/nameres.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir_def/src/nameres.rs b/crates/hir_def/src/nameres.rs index d966fc239..9e181751c 100644 --- a/crates/hir_def/src/nameres.rs +++ b/crates/hir_def/src/nameres.rs | |||
@@ -617,7 +617,7 @@ mod diagnostics { | |||
617 | let node = ast_id.to_node(db.upcast()); | 617 | let node = ast_id.to_node(db.upcast()); |
618 | (ast_id.file_id, SyntaxNodePtr::from(AstPtr::new(&node)), None) | 618 | (ast_id.file_id, SyntaxNodePtr::from(AstPtr::new(&node)), None) |
619 | } | 619 | } |
620 | MacroCallKind::Derive { ast_id, derive_name } => { | 620 | MacroCallKind::Derive { ast_id, derive_name, .. } => { |
621 | let node = ast_id.to_node(db.upcast()); | 621 | let node = ast_id.to_node(db.upcast()); |
622 | 622 | ||
623 | // Compute the precise location of the macro name's token in the derive | 623 | // Compute the precise location of the macro name's token in the derive |