mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
Map our diagnostics to rustc and clippy's ones
This commit is contained in:
parent
9c967d3809
commit
e55a1f1916
44 changed files with 628 additions and 251 deletions
|
@ -1,6 +1,6 @@
|
|||
use hir::db::DefDatabase;
|
||||
|
||||
use crate::{Diagnostic, DiagnosticsContext, Severity};
|
||||
use crate::{Diagnostic, DiagnosticCode, DiagnosticsContext, Severity};
|
||||
|
||||
// Diagnostic: unresolved-proc-macro
|
||||
//
|
||||
|
@ -41,5 +41,5 @@ pub(crate) fn unresolved_proc_macro(
|
|||
};
|
||||
let message = format!("{not_expanded_message}: {message}");
|
||||
|
||||
Diagnostic::new("unresolved-proc-macro", message, display_range).severity(severity)
|
||||
Diagnostic::new(DiagnosticCode::Ra("unresolved-proc-macro", severity), message, display_range)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue