From 54c78c96dbe61c2f1b6ec9f83a35a8ad6f6ae4fe Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Fri, 19 Mar 2021 14:23:13 +0100 Subject: Rename derive-specific APIs --- crates/hir_def/src/nameres.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/hir_def/src/nameres.rs') 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 { let node = ast.to_node(db.upcast()); (ast.file_id, SyntaxNodePtr::from(AstPtr::new(&node)), None) } - MacroCallKind::Attr(ast, name) => { + MacroCallKind::Derive(ast, name) => { let node = ast.to_node(db.upcast()); // Compute the precise location of the macro name's token in the derive @@ -631,7 +631,7 @@ mod diagnostics { let node = ast.to_node(db.upcast()); (ast.file_id, SyntaxNodePtr::from(AstPtr::new(&node))) } - MacroCallKind::Attr(ast, _) => { + MacroCallKind::Derive(ast, _) => { let node = ast.to_node(db.upcast()); (ast.file_id, SyntaxNodePtr::from(AstPtr::new(&node))) } -- cgit v1.2.3