From 69dce13dddb373d63b220d0ba4f2a7d74ac613ab Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Thu, 1 Jul 2021 19:57:50 +0200 Subject: [PATCH] Make unlinked_file diagnostic a hint again --- crates/ide_diagnostics/src/handlers/unlinked_file.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/ide_diagnostics/src/handlers/unlinked_file.rs b/crates/ide_diagnostics/src/handlers/unlinked_file.rs index 8e601fa48d..41058a9963 100644 --- a/crates/ide_diagnostics/src/handlers/unlinked_file.rs +++ b/crates/ide_diagnostics/src/handlers/unlinked_file.rs @@ -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, acc.push( Diagnostic::new("unlinked-file", "file not included in module tree", range) + .severity(Severity::WeakWarning) .with_fixes(fixes(ctx, file_id)), ); }