aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_def/src/nameres.rs
diff options
context:
space:
mode:
authorJonas Schievink <[email protected]>2021-03-19 13:23:13 +0000
committerJonas Schievink <[email protected]>2021-03-19 13:23:13 +0000
commit54c78c96dbe61c2f1b6ec9f83a35a8ad6f6ae4fe (patch)
tree960d42c02317050c6415b13fc74ad3c1f55f1c20 /crates/hir_def/src/nameres.rs
parenta627377949d308603bb0bd7ef627ffe8186e1788 (diff)
Rename derive-specific APIs
Diffstat (limited to 'crates/hir_def/src/nameres.rs')
-rw-r--r--crates/hir_def/src/nameres.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/hir_def/src/nameres.rs b/crates/hir_def/src/nameres.rs
index 1ac326f97..0d3a0b54f 100644
--- a/crates/hir_def/src/nameres.rs
+++ b/crates/hir_def/src/nameres.rs
@@ -575,7 +575,7 @@ mod diagnostics {
575 let node = ast.to_node(db.upcast()); 575 let node = ast.to_node(db.upcast());
576 (ast.file_id, SyntaxNodePtr::from(AstPtr::new(&node)), None) 576 (ast.file_id, SyntaxNodePtr::from(AstPtr::new(&node)), None)
577 } 577 }
578 MacroCallKind::Attr(ast, name) => { 578 MacroCallKind::Derive(ast, name) => {
579 let node = ast.to_node(db.upcast()); 579 let node = ast.to_node(db.upcast());
580 580
581 // Compute the precise location of the macro name's token in the derive 581 // Compute the precise location of the macro name's token in the derive
@@ -631,7 +631,7 @@ mod diagnostics {
631 let node = ast.to_node(db.upcast()); 631 let node = ast.to_node(db.upcast());
632 (ast.file_id, SyntaxNodePtr::from(AstPtr::new(&node))) 632 (ast.file_id, SyntaxNodePtr::from(AstPtr::new(&node)))
633 } 633 }
634 MacroCallKind::Attr(ast, _) => { 634 MacroCallKind::Derive(ast, _) => {
635 let node = ast.to_node(db.upcast()); 635 let node = ast.to_node(db.upcast());
636 (ast.file_id, SyntaxNodePtr::from(AstPtr::new(&node))) 636 (ast.file_id, SyntaxNodePtr::from(AstPtr::new(&node)))
637 } 637 }