2023-06-14 22:17:22 +00:00
|
|
|
use crate::{Diagnostic, DiagnosticCode, DiagnosticsContext, Severity};
|
2021-06-13 16:35:30 +00:00
|
|
|
|
|
|
|
// Diagnostic: unimplemented-builtin-macro
|
|
|
|
//
|
|
|
|
// This diagnostic is shown for builtin macros which are not yet implemented by rust-analyzer
|
2021-06-14 16:32:39 +00:00
|
|
|
pub(crate) fn unimplemented_builtin_macro(
|
2021-06-13 16:35:30 +00:00
|
|
|
ctx: &DiagnosticsContext<'_>,
|
|
|
|
d: &hir::UnimplementedBuiltinMacro,
|
|
|
|
) -> Diagnostic {
|
2023-06-14 22:17:22 +00:00
|
|
|
Diagnostic::new_with_syntax_node_ptr(
|
|
|
|
ctx,
|
|
|
|
DiagnosticCode::Ra("unimplemented-builtin-macro", Severity::WeakWarning),
|
2024-02-09 15:35:55 +00:00
|
|
|
"unimplemented built-in macro".to_owned(),
|
2024-01-18 12:59:49 +00:00
|
|
|
d.node,
|
2021-06-13 16:35:30 +00:00
|
|
|
)
|
|
|
|
}
|