mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
Diagnose unimplemented built-in macros
This commit is contained in:
parent
06b301e2f8
commit
cb5454db86
6 changed files with 87 additions and 18 deletions
|
@ -298,6 +298,13 @@ impl TestDB {
|
|||
DefDiagnosticKind::MacroError { ast, message } => {
|
||||
(ast.to_node(self.upcast()), message.as_str())
|
||||
}
|
||||
DefDiagnosticKind::UnimplementedBuiltinMacro { ast } => {
|
||||
let node = ast.to_node(self.upcast());
|
||||
(
|
||||
InFile::new(ast.file_id, node.syntax().clone()),
|
||||
"UnimplementedBuiltinMacro",
|
||||
)
|
||||
}
|
||||
};
|
||||
|
||||
let frange = node.as_ref().original_file_range(self);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue