From 8982c0610f88145fa259534d7ab4b981e824ee32 Mon Sep 17 00:00:00 2001 From: "Jeremy A. Kolb" Date: Mon, 26 Oct 2020 09:57:46 -0400 Subject: [PATCH] Update tests --- .../src/diagnostics/test_data/clippy_pass_by_ref.txt | 2 ++ .../src/diagnostics/test_data/handles_macro_location.txt | 2 ++ .../src/diagnostics/test_data/macro_compiler_error.txt | 4 ++++ .../test_data/rustc_incompatible_type_for_trait.txt | 2 ++ .../src/diagnostics/test_data/rustc_mismatched_type.txt | 2 ++ .../src/diagnostics/test_data/rustc_unused_variable.txt | 2 ++ .../diagnostics/test_data/rustc_unused_variable_as_hint.txt | 2 ++ .../diagnostics/test_data/rustc_unused_variable_as_info.txt | 2 ++ .../test_data/rustc_wrong_number_of_parameters.txt | 2 ++ .../src/diagnostics/test_data/snap_multi_line_fix.txt | 2 ++ 10 files changed, 22 insertions(+) diff --git a/crates/rust-analyzer/src/diagnostics/test_data/clippy_pass_by_ref.txt b/crates/rust-analyzer/src/diagnostics/test_data/clippy_pass_by_ref.txt index d0651712607..58d47d32a42 100644 --- a/crates/rust-analyzer/src/diagnostics/test_data/clippy_pass_by_ref.txt +++ b/crates/rust-analyzer/src/diagnostics/test_data/clippy_pass_by_ref.txt @@ -20,6 +20,7 @@ "trivially_copy_pass_by_ref", ), ), + code_description: None, source: Some( "clippy", ), @@ -61,6 +62,7 @@ ], ), tags: None, + data: None, }, fixes: [], }, diff --git a/crates/rust-analyzer/src/diagnostics/test_data/handles_macro_location.txt b/crates/rust-analyzer/src/diagnostics/test_data/handles_macro_location.txt index f5de2f07f3a..6aa26bf63ab 100644 --- a/crates/rust-analyzer/src/diagnostics/test_data/handles_macro_location.txt +++ b/crates/rust-analyzer/src/diagnostics/test_data/handles_macro_location.txt @@ -20,12 +20,14 @@ "E0277", ), ), + code_description: None, source: Some( "rustc", ), message: "can\'t compare `{integer}` with `&str`\nthe trait `std::cmp::PartialEq<&str>` is not implemented for `{integer}`", related_information: None, tags: None, + data: None, }, fixes: [], }, diff --git a/crates/rust-analyzer/src/diagnostics/test_data/macro_compiler_error.txt b/crates/rust-analyzer/src/diagnostics/test_data/macro_compiler_error.txt index 00e8da8a70c..7aaffaba251 100644 --- a/crates/rust-analyzer/src/diagnostics/test_data/macro_compiler_error.txt +++ b/crates/rust-analyzer/src/diagnostics/test_data/macro_compiler_error.txt @@ -16,6 +16,7 @@ Error, ), code: None, + code_description: None, source: Some( "rustc", ), @@ -41,6 +42,7 @@ ], ), tags: None, + data: None, }, fixes: [], }, @@ -61,6 +63,7 @@ Error, ), code: None, + code_description: None, source: Some( "rustc", ), @@ -86,6 +89,7 @@ ], ), tags: None, + data: None, }, fixes: [], }, diff --git a/crates/rust-analyzer/src/diagnostics/test_data/rustc_incompatible_type_for_trait.txt b/crates/rust-analyzer/src/diagnostics/test_data/rustc_incompatible_type_for_trait.txt index fc54440be23..58421342001 100644 --- a/crates/rust-analyzer/src/diagnostics/test_data/rustc_incompatible_type_for_trait.txt +++ b/crates/rust-analyzer/src/diagnostics/test_data/rustc_incompatible_type_for_trait.txt @@ -20,12 +20,14 @@ "E0053", ), ), + code_description: None, source: Some( "rustc", ), message: "method `next` has an incompatible type for trait\nexpected type `fn(&mut ty::list_iter::ListIterator<\'list, M>) -> std::option::Option<&ty::Ref>`\n found type `fn(&ty::list_iter::ListIterator<\'list, M>) -> std::option::Option<&\'list ty::Ref>`", related_information: None, tags: None, + data: None, }, fixes: [], }, diff --git a/crates/rust-analyzer/src/diagnostics/test_data/rustc_mismatched_type.txt b/crates/rust-analyzer/src/diagnostics/test_data/rustc_mismatched_type.txt index c269af218ce..2610e4e209a 100644 --- a/crates/rust-analyzer/src/diagnostics/test_data/rustc_mismatched_type.txt +++ b/crates/rust-analyzer/src/diagnostics/test_data/rustc_mismatched_type.txt @@ -20,12 +20,14 @@ "E0308", ), ), + code_description: None, source: Some( "rustc", ), message: "mismatched types\nexpected usize, found u32", related_information: None, tags: None, + data: None, }, fixes: [], }, diff --git a/crates/rust-analyzer/src/diagnostics/test_data/rustc_unused_variable.txt b/crates/rust-analyzer/src/diagnostics/test_data/rustc_unused_variable.txt index 74d91bc77c8..8dc53391e94 100644 --- a/crates/rust-analyzer/src/diagnostics/test_data/rustc_unused_variable.txt +++ b/crates/rust-analyzer/src/diagnostics/test_data/rustc_unused_variable.txt @@ -20,6 +20,7 @@ "unused_variables", ), ), + code_description: None, source: Some( "rustc", ), @@ -30,6 +31,7 @@ Unnecessary, ], ), + data: None, }, fixes: [ CodeAction { diff --git a/crates/rust-analyzer/src/diagnostics/test_data/rustc_unused_variable_as_hint.txt b/crates/rust-analyzer/src/diagnostics/test_data/rustc_unused_variable_as_hint.txt index 8a420c9495c..c8703194c83 100644 --- a/crates/rust-analyzer/src/diagnostics/test_data/rustc_unused_variable_as_hint.txt +++ b/crates/rust-analyzer/src/diagnostics/test_data/rustc_unused_variable_as_hint.txt @@ -20,6 +20,7 @@ "unused_variables", ), ), + code_description: None, source: Some( "rustc", ), @@ -30,6 +31,7 @@ Unnecessary, ], ), + data: None, }, fixes: [ CodeAction { diff --git a/crates/rust-analyzer/src/diagnostics/test_data/rustc_unused_variable_as_info.txt b/crates/rust-analyzer/src/diagnostics/test_data/rustc_unused_variable_as_info.txt index 79910660b7f..dc93227adf4 100644 --- a/crates/rust-analyzer/src/diagnostics/test_data/rustc_unused_variable_as_info.txt +++ b/crates/rust-analyzer/src/diagnostics/test_data/rustc_unused_variable_as_info.txt @@ -20,6 +20,7 @@ "unused_variables", ), ), + code_description: None, source: Some( "rustc", ), @@ -30,6 +31,7 @@ Unnecessary, ], ), + data: None, }, fixes: [ CodeAction { diff --git a/crates/rust-analyzer/src/diagnostics/test_data/rustc_wrong_number_of_parameters.txt b/crates/rust-analyzer/src/diagnostics/test_data/rustc_wrong_number_of_parameters.txt index efe37261db3..ba1b98b335e 100644 --- a/crates/rust-analyzer/src/diagnostics/test_data/rustc_wrong_number_of_parameters.txt +++ b/crates/rust-analyzer/src/diagnostics/test_data/rustc_wrong_number_of_parameters.txt @@ -20,6 +20,7 @@ "E0061", ), ), + code_description: None, source: Some( "rustc", ), @@ -45,6 +46,7 @@ ], ), tags: None, + data: None, }, fixes: [], }, diff --git a/crates/rust-analyzer/src/diagnostics/test_data/snap_multi_line_fix.txt b/crates/rust-analyzer/src/diagnostics/test_data/snap_multi_line_fix.txt index 4f811ab64bf..81f752672f0 100644 --- a/crates/rust-analyzer/src/diagnostics/test_data/snap_multi_line_fix.txt +++ b/crates/rust-analyzer/src/diagnostics/test_data/snap_multi_line_fix.txt @@ -20,6 +20,7 @@ "let_and_return", ), ), + code_description: None, source: Some( "clippy", ), @@ -45,6 +46,7 @@ ], ), tags: None, + data: None, }, fixes: [ CodeAction {