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:
bors[bot] 2021-07-01 17:58:40 +00:00 committed by GitHub
commit 76d8f55952
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,7 +12,7 @@ use syntax::{
};
use text_edit::TextEdit;
use crate::{fix, Assist, Diagnostic, DiagnosticsContext};
use crate::{fix, Assist, Diagnostic, DiagnosticsContext, Severity};
// Diagnostic: unlinked-file
//
@ -27,6 +27,7 @@ pub(crate) fn unlinked_file(ctx: &DiagnosticsContext, acc: &mut Vec<Diagnostic>,
acc.push(
Diagnostic::new("unlinked-file", "file not included in module tree", range)
.severity(Severity::WeakWarning)
.with_fixes(fixes(ctx, file_id)),
);
}