Unnamed repository; edit this file 'description' to name the repository.
Fix tests
Laurențiu Nicola 2021-10-18
parent edb03ad · commit 29d281e
-rw-r--r--crates/rust-analyzer/src/diagnostics/test_data/clippy_pass_by_ref.txt12
-rw-r--r--crates/rust-analyzer/src/diagnostics/test_data/handles_macro_location.txt4
-rw-r--r--crates/rust-analyzer/src/diagnostics/test_data/macro_compiler_error.txt12
-rw-r--r--crates/rust-analyzer/src/diagnostics/test_data/rustc_incompatible_type_for_trait.txt4
-rw-r--r--crates/rust-analyzer/src/diagnostics/test_data/rustc_mismatched_type.txt4
-rw-r--r--crates/rust-analyzer/src/diagnostics/test_data/rustc_unused_variable.txt12
-rw-r--r--crates/rust-analyzer/src/diagnostics/test_data/rustc_unused_variable_as_hint.txt12
-rw-r--r--crates/rust-analyzer/src/diagnostics/test_data/rustc_unused_variable_as_info.txt12
-rw-r--r--crates/rust-analyzer/src/diagnostics/test_data/rustc_wrong_number_of_parameters.txt8
-rw-r--r--crates/rust-analyzer/src/diagnostics/test_data/snap_multi_line_fix.txt12
10 files changed, 69 insertions, 23 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 fd04163de9..a9c0edcf9f 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
@@ -23,7 +23,9 @@
},
},
severity: Some(
- Warning,
+ DiagnosticSeverity(
+ 2,
+ ),
),
code: Some(
String(
@@ -140,7 +142,9 @@
},
},
severity: Some(
- Hint,
+ DiagnosticSeverity(
+ 4,
+ ),
),
code: Some(
String(
@@ -231,7 +235,9 @@
},
},
severity: Some(
- Hint,
+ DiagnosticSeverity(
+ 4,
+ ),
),
code: Some(
String(
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 a7f936a703..fd69097d05 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
@@ -23,7 +23,9 @@
},
},
severity: Some(
- Error,
+ DiagnosticSeverity(
+ 1,
+ ),
),
code: Some(
String(
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 8bee4cfe10..1c25a3ed69 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
@@ -23,7 +23,9 @@
},
},
severity: Some(
- Hint,
+ DiagnosticSeverity(
+ 4,
+ ),
),
code: None,
code_description: None,
@@ -90,7 +92,9 @@
},
},
severity: Some(
- Hint,
+ DiagnosticSeverity(
+ 4,
+ ),
),
code: None,
code_description: None,
@@ -157,7 +161,9 @@
},
},
severity: Some(
- Error,
+ DiagnosticSeverity(
+ 1,
+ ),
),
code: None,
code_description: None,
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 afc562a0e2..653fb0130d 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
@@ -23,7 +23,9 @@
},
},
severity: Some(
- Error,
+ DiagnosticSeverity(
+ 1,
+ ),
),
code: Some(
String(
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 05074a914b..f37e416b7b 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
@@ -23,7 +23,9 @@
},
},
severity: Some(
- Error,
+ DiagnosticSeverity(
+ 1,
+ ),
),
code: Some(
String(
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 3ded70411d..df73efe5f8 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
@@ -23,7 +23,9 @@
},
},
severity: Some(
- Warning,
+ DiagnosticSeverity(
+ 2,
+ ),
),
code: Some(
String(
@@ -67,7 +69,9 @@
),
tags: Some(
[
- Unnecessary,
+ DiagnosticTag(
+ 1,
+ ),
],
),
data: None,
@@ -98,7 +102,9 @@
},
},
severity: Some(
- Hint,
+ DiagnosticSeverity(
+ 4,
+ ),
),
code: Some(
String(
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 0993aa1af1..ad22a34d67 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
@@ -23,7 +23,9 @@
},
},
severity: Some(
- Hint,
+ DiagnosticSeverity(
+ 4,
+ ),
),
code: Some(
String(
@@ -67,7 +69,9 @@
),
tags: Some(
[
- Unnecessary,
+ DiagnosticTag(
+ 1,
+ ),
],
),
data: None,
@@ -98,7 +102,9 @@
},
},
severity: Some(
- Hint,
+ DiagnosticSeverity(
+ 4,
+ ),
),
code: Some(
String(
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 d7a974ae57..1072d8a177 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
@@ -23,7 +23,9 @@
},
},
severity: Some(
- Information,
+ DiagnosticSeverity(
+ 3,
+ ),
),
code: Some(
String(
@@ -67,7 +69,9 @@
),
tags: Some(
[
- Unnecessary,
+ DiagnosticTag(
+ 1,
+ ),
],
),
data: None,
@@ -98,7 +102,9 @@
},
},
severity: Some(
- Hint,
+ DiagnosticSeverity(
+ 4,
+ ),
),
code: Some(
String(
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 5ea27a1527..3e043666aa 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
@@ -23,7 +23,9 @@
},
},
severity: Some(
- Error,
+ DiagnosticSeverity(
+ 1,
+ ),
),
code: Some(
String(
@@ -114,7 +116,9 @@
},
},
severity: Some(
- Hint,
+ DiagnosticSeverity(
+ 4,
+ ),
),
code: Some(
String(
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 f77abde515..67e442d73d 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
@@ -23,7 +23,9 @@
},
},
severity: Some(
- Warning,
+ DiagnosticSeverity(
+ 2,
+ ),
),
code: Some(
String(
@@ -140,7 +142,9 @@
},
},
severity: Some(
- Hint,
+ DiagnosticSeverity(
+ 4,
+ ),
),
code: Some(
String(
@@ -231,7 +235,9 @@
},
},
severity: Some(
- Hint,
+ DiagnosticSeverity(
+ 4,
+ ),
),
code: Some(
String(