mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 05:15:04 +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
|
@ -14,7 +14,7 @@ use syntax::{
|
|||
};
|
||||
use text_edit::TextEdit;
|
||||
|
||||
use crate::{fix, Assist, Diagnostic, DiagnosticsContext, Severity};
|
||||
use crate::{fix, Assist, Diagnostic, DiagnosticCode, DiagnosticsContext, Severity};
|
||||
|
||||
// Diagnostic: unlinked-file
|
||||
//
|
||||
|
@ -46,8 +46,7 @@ pub(crate) fn unlinked_file(
|
|||
.unwrap_or(range);
|
||||
|
||||
acc.push(
|
||||
Diagnostic::new("unlinked-file", message, range)
|
||||
.severity(Severity::WeakWarning)
|
||||
Diagnostic::new(DiagnosticCode::Ra("unlinked-file", Severity::WeakWarning), message, range)
|
||||
.with_fixes(fixes),
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue