diff options
author | Jeremy A. Kolb <[email protected]> | 2020-10-26 13:57:46 +0000 |
---|---|---|
committer | Jeremy A. Kolb <[email protected]> | 2020-10-26 13:57:46 +0000 |
commit | 8982c0610f88145fa259534d7ab4b981e824ee32 (patch) | |
tree | e77fca0e4efcf2a10d50d6fcc758be2e9e141090 | |
parent | 2d4be2ef2a12886c526c07ad411406393c2c4b7e (diff) |
Update tests
10 files changed, 22 insertions, 0 deletions
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 d06517126..58d47d32a 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 @@ | |||
20 | "trivially_copy_pass_by_ref", | 20 | "trivially_copy_pass_by_ref", |
21 | ), | 21 | ), |
22 | ), | 22 | ), |
23 | code_description: None, | ||
23 | source: Some( | 24 | source: Some( |
24 | "clippy", | 25 | "clippy", |
25 | ), | 26 | ), |
@@ -61,6 +62,7 @@ | |||
61 | ], | 62 | ], |
62 | ), | 63 | ), |
63 | tags: None, | 64 | tags: None, |
65 | data: None, | ||
64 | }, | 66 | }, |
65 | fixes: [], | 67 | fixes: [], |
66 | }, | 68 | }, |
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 f5de2f07f..6aa26bf63 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 @@ | |||
20 | "E0277", | 20 | "E0277", |
21 | ), | 21 | ), |
22 | ), | 22 | ), |
23 | code_description: None, | ||
23 | source: Some( | 24 | source: Some( |
24 | "rustc", | 25 | "rustc", |
25 | ), | 26 | ), |
26 | message: "can\'t compare `{integer}` with `&str`\nthe trait `std::cmp::PartialEq<&str>` is not implemented for `{integer}`", | 27 | message: "can\'t compare `{integer}` with `&str`\nthe trait `std::cmp::PartialEq<&str>` is not implemented for `{integer}`", |
27 | related_information: None, | 28 | related_information: None, |
28 | tags: None, | 29 | tags: None, |
30 | data: None, | ||
29 | }, | 31 | }, |
30 | fixes: [], | 32 | fixes: [], |
31 | }, | 33 | }, |
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 00e8da8a7..7aaffaba2 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 @@ | |||
16 | Error, | 16 | Error, |
17 | ), | 17 | ), |
18 | code: None, | 18 | code: None, |
19 | code_description: None, | ||
19 | source: Some( | 20 | source: Some( |
20 | "rustc", | 21 | "rustc", |
21 | ), | 22 | ), |
@@ -41,6 +42,7 @@ | |||
41 | ], | 42 | ], |
42 | ), | 43 | ), |
43 | tags: None, | 44 | tags: None, |
45 | data: None, | ||
44 | }, | 46 | }, |
45 | fixes: [], | 47 | fixes: [], |
46 | }, | 48 | }, |
@@ -61,6 +63,7 @@ | |||
61 | Error, | 63 | Error, |
62 | ), | 64 | ), |
63 | code: None, | 65 | code: None, |
66 | code_description: None, | ||
64 | source: Some( | 67 | source: Some( |
65 | "rustc", | 68 | "rustc", |
66 | ), | 69 | ), |
@@ -86,6 +89,7 @@ | |||
86 | ], | 89 | ], |
87 | ), | 90 | ), |
88 | tags: None, | 91 | tags: None, |
92 | data: None, | ||
89 | }, | 93 | }, |
90 | fixes: [], | 94 | fixes: [], |
91 | }, | 95 | }, |
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 fc54440be..584213420 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 @@ | |||
20 | "E0053", | 20 | "E0053", |
21 | ), | 21 | ), |
22 | ), | 22 | ), |
23 | code_description: None, | ||
23 | source: Some( | 24 | source: Some( |
24 | "rustc", | 25 | "rustc", |
25 | ), | 26 | ), |
26 | message: "method `next` has an incompatible type for trait\nexpected type `fn(&mut ty::list_iter::ListIterator<\'list, M>) -> std::option::Option<&ty::Ref<M>>`\n found type `fn(&ty::list_iter::ListIterator<\'list, M>) -> std::option::Option<&\'list ty::Ref<M>>`", | 27 | message: "method `next` has an incompatible type for trait\nexpected type `fn(&mut ty::list_iter::ListIterator<\'list, M>) -> std::option::Option<&ty::Ref<M>>`\n found type `fn(&ty::list_iter::ListIterator<\'list, M>) -> std::option::Option<&\'list ty::Ref<M>>`", |
27 | related_information: None, | 28 | related_information: None, |
28 | tags: None, | 29 | tags: None, |
30 | data: None, | ||
29 | }, | 31 | }, |
30 | fixes: [], | 32 | fixes: [], |
31 | }, | 33 | }, |
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 c269af218..2610e4e20 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 @@ | |||
20 | "E0308", | 20 | "E0308", |
21 | ), | 21 | ), |
22 | ), | 22 | ), |
23 | code_description: None, | ||
23 | source: Some( | 24 | source: Some( |
24 | "rustc", | 25 | "rustc", |
25 | ), | 26 | ), |
26 | message: "mismatched types\nexpected usize, found u32", | 27 | message: "mismatched types\nexpected usize, found u32", |
27 | related_information: None, | 28 | related_information: None, |
28 | tags: None, | 29 | tags: None, |
30 | data: None, | ||
29 | }, | 31 | }, |
30 | fixes: [], | 32 | fixes: [], |
31 | }, | 33 | }, |
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 74d91bc77..8dc53391e 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 @@ | |||
20 | "unused_variables", | 20 | "unused_variables", |
21 | ), | 21 | ), |
22 | ), | 22 | ), |
23 | code_description: None, | ||
23 | source: Some( | 24 | source: Some( |
24 | "rustc", | 25 | "rustc", |
25 | ), | 26 | ), |
@@ -30,6 +31,7 @@ | |||
30 | Unnecessary, | 31 | Unnecessary, |
31 | ], | 32 | ], |
32 | ), | 33 | ), |
34 | data: None, | ||
33 | }, | 35 | }, |
34 | fixes: [ | 36 | fixes: [ |
35 | CodeAction { | 37 | 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 8a420c949..c8703194c 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 @@ | |||
20 | "unused_variables", | 20 | "unused_variables", |
21 | ), | 21 | ), |
22 | ), | 22 | ), |
23 | code_description: None, | ||
23 | source: Some( | 24 | source: Some( |
24 | "rustc", | 25 | "rustc", |
25 | ), | 26 | ), |
@@ -30,6 +31,7 @@ | |||
30 | Unnecessary, | 31 | Unnecessary, |
31 | ], | 32 | ], |
32 | ), | 33 | ), |
34 | data: None, | ||
33 | }, | 35 | }, |
34 | fixes: [ | 36 | fixes: [ |
35 | CodeAction { | 37 | 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 79910660b..dc93227ad 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 @@ | |||
20 | "unused_variables", | 20 | "unused_variables", |
21 | ), | 21 | ), |
22 | ), | 22 | ), |
23 | code_description: None, | ||
23 | source: Some( | 24 | source: Some( |
24 | "rustc", | 25 | "rustc", |
25 | ), | 26 | ), |
@@ -30,6 +31,7 @@ | |||
30 | Unnecessary, | 31 | Unnecessary, |
31 | ], | 32 | ], |
32 | ), | 33 | ), |
34 | data: None, | ||
33 | }, | 35 | }, |
34 | fixes: [ | 36 | fixes: [ |
35 | CodeAction { | 37 | 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 efe37261d..ba1b98b33 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 @@ | |||
20 | "E0061", | 20 | "E0061", |
21 | ), | 21 | ), |
22 | ), | 22 | ), |
23 | code_description: None, | ||
23 | source: Some( | 24 | source: Some( |
24 | "rustc", | 25 | "rustc", |
25 | ), | 26 | ), |
@@ -45,6 +46,7 @@ | |||
45 | ], | 46 | ], |
46 | ), | 47 | ), |
47 | tags: None, | 48 | tags: None, |
49 | data: None, | ||
48 | }, | 50 | }, |
49 | fixes: [], | 51 | fixes: [], |
50 | }, | 52 | }, |
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 4f811ab64..81f752672 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 @@ | |||
20 | "let_and_return", | 20 | "let_and_return", |
21 | ), | 21 | ), |
22 | ), | 22 | ), |
23 | code_description: None, | ||
23 | source: Some( | 24 | source: Some( |
24 | "clippy", | 25 | "clippy", |
25 | ), | 26 | ), |
@@ -45,6 +46,7 @@ | |||
45 | ], | 46 | ], |
46 | ), | 47 | ), |
47 | tags: None, | 48 | tags: None, |
49 | data: None, | ||
48 | }, | 50 | }, |
49 | fixes: [ | 51 | fixes: [ |
50 | CodeAction { | 52 | CodeAction { |