Skip to content

Commit 8982c06

Browse files
committed
Update tests
1 parent 2d4be2e commit 8982c06

10 files changed

+22
-0
lines changed

crates/rust-analyzer/src/diagnostics/test_data/clippy_pass_by_ref.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"trivially_copy_pass_by_ref",
2121
),
2222
),
23+
code_description: None,
2324
source: Some(
2425
"clippy",
2526
),
@@ -61,6 +62,7 @@
6162
],
6263
),
6364
tags: None,
65+
data: None,
6466
},
6567
fixes: [],
6668
},

crates/rust-analyzer/src/diagnostics/test_data/handles_macro_location.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,14 @@
2020
"E0277",
2121
),
2222
),
23+
code_description: None,
2324
source: Some(
2425
"rustc",
2526
),
2627
message: "can\'t compare `{integer}` with `&str`\nthe trait `std::cmp::PartialEq<&str>` is not implemented for `{integer}`",
2728
related_information: None,
2829
tags: None,
30+
data: None,
2931
},
3032
fixes: [],
3133
},

crates/rust-analyzer/src/diagnostics/test_data/macro_compiler_error.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
Error,
1717
),
1818
code: None,
19+
code_description: None,
1920
source: Some(
2021
"rustc",
2122
),
@@ -41,6 +42,7 @@
4142
],
4243
),
4344
tags: None,
45+
data: None,
4446
},
4547
fixes: [],
4648
},
@@ -61,6 +63,7 @@
6163
Error,
6264
),
6365
code: None,
66+
code_description: None,
6467
source: Some(
6568
"rustc",
6669
),
@@ -86,6 +89,7 @@
8689
],
8790
),
8891
tags: None,
92+
data: None,
8993
},
9094
fixes: [],
9195
},

crates/rust-analyzer/src/diagnostics/test_data/rustc_incompatible_type_for_trait.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,14 @@
2020
"E0053",
2121
),
2222
),
23+
code_description: None,
2324
source: Some(
2425
"rustc",
2526
),
2627
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>>`",
2728
related_information: None,
2829
tags: None,
30+
data: None,
2931
},
3032
fixes: [],
3133
},

crates/rust-analyzer/src/diagnostics/test_data/rustc_mismatched_type.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,14 @@
2020
"E0308",
2121
),
2222
),
23+
code_description: None,
2324
source: Some(
2425
"rustc",
2526
),
2627
message: "mismatched types\nexpected usize, found u32",
2728
related_information: None,
2829
tags: None,
30+
data: None,
2931
},
3032
fixes: [],
3133
},

crates/rust-analyzer/src/diagnostics/test_data/rustc_unused_variable.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"unused_variables",
2121
),
2222
),
23+
code_description: None,
2324
source: Some(
2425
"rustc",
2526
),
@@ -30,6 +31,7 @@
3031
Unnecessary,
3132
],
3233
),
34+
data: None,
3335
},
3436
fixes: [
3537
CodeAction {

crates/rust-analyzer/src/diagnostics/test_data/rustc_unused_variable_as_hint.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"unused_variables",
2121
),
2222
),
23+
code_description: None,
2324
source: Some(
2425
"rustc",
2526
),
@@ -30,6 +31,7 @@
3031
Unnecessary,
3132
],
3233
),
34+
data: None,
3335
},
3436
fixes: [
3537
CodeAction {

crates/rust-analyzer/src/diagnostics/test_data/rustc_unused_variable_as_info.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"unused_variables",
2121
),
2222
),
23+
code_description: None,
2324
source: Some(
2425
"rustc",
2526
),
@@ -30,6 +31,7 @@
3031
Unnecessary,
3132
],
3233
),
34+
data: None,
3335
},
3436
fixes: [
3537
CodeAction {

crates/rust-analyzer/src/diagnostics/test_data/rustc_wrong_number_of_parameters.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"E0061",
2121
),
2222
),
23+
code_description: None,
2324
source: Some(
2425
"rustc",
2526
),
@@ -45,6 +46,7 @@
4546
],
4647
),
4748
tags: None,
49+
data: None,
4850
},
4951
fixes: [],
5052
},

crates/rust-analyzer/src/diagnostics/test_data/snap_multi_line_fix.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"let_and_return",
2121
),
2222
),
23+
code_description: None,
2324
source: Some(
2425
"clippy",
2526
),
@@ -45,6 +46,7 @@
4546
],
4647
),
4748
tags: None,
49+
data: None,
4850
},
4951
fixes: [
5052
CodeAction {

0 commit comments

Comments
 (0)