mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 05:45:12 +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,4 +1,4 @@
|
|||
use crate::{Diagnostic, DiagnosticsContext};
|
||||
use crate::{Diagnostic, DiagnosticCode, DiagnosticsContext};
|
||||
|
||||
// Diagnostic: unresolved-macro-call
|
||||
//
|
||||
|
@ -12,7 +12,7 @@ pub(crate) fn unresolved_macro_call(
|
|||
let display_range = ctx.resolve_precise_location(&d.macro_call, d.precise_location);
|
||||
let bang = if d.is_bang { "!" } else { "" };
|
||||
Diagnostic::new(
|
||||
"unresolved-macro-call",
|
||||
DiagnosticCode::RustcHardError("unresolved-macro-call"),
|
||||
format!("unresolved macro `{}{bang}`", d.path.display(ctx.sema.db)),
|
||||
display_range,
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue