Skip to content

Commit 29d281e

Browse files
committed
Fix tests
1 parent edb03ad commit 29d281e

10 files changed

+69
-23
lines changed

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

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
},
2424
},
2525
severity: Some(
26-
Warning,
26+
DiagnosticSeverity(
27+
2,
28+
),
2729
),
2830
code: Some(
2931
String(
@@ -140,7 +142,9 @@
140142
},
141143
},
142144
severity: Some(
143-
Hint,
145+
DiagnosticSeverity(
146+
4,
147+
),
144148
),
145149
code: Some(
146150
String(
@@ -231,7 +235,9 @@
231235
},
232236
},
233237
severity: Some(
234-
Hint,
238+
DiagnosticSeverity(
239+
4,
240+
),
235241
),
236242
code: Some(
237243
String(

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
},
2424
},
2525
severity: Some(
26-
Error,
26+
DiagnosticSeverity(
27+
1,
28+
),
2729
),
2830
code: Some(
2931
String(

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

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
},
2424
},
2525
severity: Some(
26-
Hint,
26+
DiagnosticSeverity(
27+
4,
28+
),
2729
),
2830
code: None,
2931
code_description: None,
@@ -90,7 +92,9 @@
9092
},
9193
},
9294
severity: Some(
93-
Hint,
95+
DiagnosticSeverity(
96+
4,
97+
),
9498
),
9599
code: None,
96100
code_description: None,
@@ -157,7 +161,9 @@
157161
},
158162
},
159163
severity: Some(
160-
Error,
164+
DiagnosticSeverity(
165+
1,
166+
),
161167
),
162168
code: None,
163169
code_description: None,

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
},
2424
},
2525
severity: Some(
26-
Error,
26+
DiagnosticSeverity(
27+
1,
28+
),
2729
),
2830
code: Some(
2931
String(

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
},
2424
},
2525
severity: Some(
26-
Error,
26+
DiagnosticSeverity(
27+
1,
28+
),
2729
),
2830
code: Some(
2931
String(

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

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
},
2424
},
2525
severity: Some(
26-
Warning,
26+
DiagnosticSeverity(
27+
2,
28+
),
2729
),
2830
code: Some(
2931
String(
@@ -67,7 +69,9 @@
6769
),
6870
tags: Some(
6971
[
70-
Unnecessary,
72+
DiagnosticTag(
73+
1,
74+
),
7175
],
7276
),
7377
data: None,
@@ -98,7 +102,9 @@
98102
},
99103
},
100104
severity: Some(
101-
Hint,
105+
DiagnosticSeverity(
106+
4,
107+
),
102108
),
103109
code: Some(
104110
String(

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

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
},
2424
},
2525
severity: Some(
26-
Hint,
26+
DiagnosticSeverity(
27+
4,
28+
),
2729
),
2830
code: Some(
2931
String(
@@ -67,7 +69,9 @@
6769
),
6870
tags: Some(
6971
[
70-
Unnecessary,
72+
DiagnosticTag(
73+
1,
74+
),
7175
],
7276
),
7377
data: None,
@@ -98,7 +102,9 @@
98102
},
99103
},
100104
severity: Some(
101-
Hint,
105+
DiagnosticSeverity(
106+
4,
107+
),
102108
),
103109
code: Some(
104110
String(

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

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
},
2424
},
2525
severity: Some(
26-
Information,
26+
DiagnosticSeverity(
27+
3,
28+
),
2729
),
2830
code: Some(
2931
String(
@@ -67,7 +69,9 @@
6769
),
6870
tags: Some(
6971
[
70-
Unnecessary,
72+
DiagnosticTag(
73+
1,
74+
),
7175
],
7276
),
7377
data: None,
@@ -98,7 +102,9 @@
98102
},
99103
},
100104
severity: Some(
101-
Hint,
105+
DiagnosticSeverity(
106+
4,
107+
),
102108
),
103109
code: Some(
104110
String(

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
},
2424
},
2525
severity: Some(
26-
Error,
26+
DiagnosticSeverity(
27+
1,
28+
),
2729
),
2830
code: Some(
2931
String(
@@ -114,7 +116,9 @@
114116
},
115117
},
116118
severity: Some(
117-
Hint,
119+
DiagnosticSeverity(
120+
4,
121+
),
118122
),
119123
code: Some(
120124
String(

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

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
},
2424
},
2525
severity: Some(
26-
Warning,
26+
DiagnosticSeverity(
27+
2,
28+
),
2729
),
2830
code: Some(
2931
String(
@@ -140,7 +142,9 @@
140142
},
141143
},
142144
severity: Some(
143-
Hint,
145+
DiagnosticSeverity(
146+
4,
147+
),
144148
),
145149
code: Some(
146150
String(
@@ -231,7 +235,9 @@
231235
},
232236
},
233237
severity: Some(
234-
Hint,
238+
DiagnosticSeverity(
239+
4,
240+
),
235241
),
236242
code: Some(
237243
String(

0 commit comments

Comments
 (0)