From a3df5971559848bddfe83a9735729a8dc48d27a8 Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Fri, 24 Dec 2021 13:33:11 -0700 Subject: [PATCH] Make diagnostics disk-based in test --- crates/diagnostics/src/diagnostics.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/crates/diagnostics/src/diagnostics.rs b/crates/diagnostics/src/diagnostics.rs index ad527fe3c76feffc25edf37e0150842408f48535..2b5b9a09f48fcfcd7779a1880fcec69e316d4f48 100644 --- a/crates/diagnostics/src/diagnostics.rs +++ b/crates/diagnostics/src/diagnostics.rs @@ -648,6 +648,7 @@ mod tests { .to_string(), severity: DiagnosticSeverity::INFORMATION, is_primary: false, + is_disk_based: true, group_id: 1, ..Default::default() }, @@ -660,6 +661,7 @@ mod tests { .to_string(), severity: DiagnosticSeverity::INFORMATION, is_primary: false, + is_disk_based: true, group_id: 0, ..Default::default() }, @@ -670,6 +672,7 @@ mod tests { message: "value moved here".to_string(), severity: DiagnosticSeverity::INFORMATION, is_primary: false, + is_disk_based: true, group_id: 1, ..Default::default() }, @@ -680,6 +683,7 @@ mod tests { message: "value moved here".to_string(), severity: DiagnosticSeverity::INFORMATION, is_primary: false, + is_disk_based: true, group_id: 0, ..Default::default() }, @@ -690,6 +694,7 @@ mod tests { message: "use of moved value\nvalue used here after move".to_string(), severity: DiagnosticSeverity::ERROR, is_primary: true, + is_disk_based: true, group_id: 0, ..Default::default() }, @@ -700,6 +705,7 @@ mod tests { message: "use of moved value\nvalue used here after move".to_string(), severity: DiagnosticSeverity::ERROR, is_primary: true, + is_disk_based: true, group_id: 1, ..Default::default() }, @@ -770,6 +776,7 @@ mod tests { message: "mismatched types\nexpected `usize`, found `char`".to_string(), severity: DiagnosticSeverity::ERROR, is_primary: true, + is_disk_based: true, group_id: 0, ..Default::default() },