mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-28 05:53:45 +00:00
Merge #9447
9447: fix: Make unlinked_file diagnostic a hint again r=jonas-schievink a=jonas-schievink #9255 accidentally turned it into an error bors r+ Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
This commit is contained in:
commit
76d8f55952
1 changed files with 2 additions and 1 deletions
|
@ -12,7 +12,7 @@ use syntax::{
|
||||||
};
|
};
|
||||||
use text_edit::TextEdit;
|
use text_edit::TextEdit;
|
||||||
|
|
||||||
use crate::{fix, Assist, Diagnostic, DiagnosticsContext};
|
use crate::{fix, Assist, Diagnostic, DiagnosticsContext, Severity};
|
||||||
|
|
||||||
// Diagnostic: unlinked-file
|
// Diagnostic: unlinked-file
|
||||||
//
|
//
|
||||||
|
@ -27,6 +27,7 @@ pub(crate) fn unlinked_file(ctx: &DiagnosticsContext, acc: &mut Vec<Diagnostic>,
|
||||||
|
|
||||||
acc.push(
|
acc.push(
|
||||||
Diagnostic::new("unlinked-file", "file not included in module tree", range)
|
Diagnostic::new("unlinked-file", "file not included in module tree", range)
|
||||||
|
.severity(Severity::WeakWarning)
|
||||||
.with_fixes(fixes(ctx, file_id)),
|
.with_fixes(fixes(ctx, file_id)),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue