]> git.lizzy.rs Git - rust.git/blobdiff - crates/rust-analyzer/src/diagnostics/test_data/rustc_unused_variable_as_info.txt
Fix tests
[rust.git] / crates / rust-analyzer / src / diagnostics / test_data / rustc_unused_variable_as_info.txt
index 04ca0c9c2462aa6115a11220af27f4ba2095a8ad..1072d8a17700612f64e138ef138495c4b52de268 100644 (file)
@@ -2,6 +2,7 @@
     MappedRustDiagnostic {
         url: Url {
             scheme: "file",
+            cannot_be_a_base: false,
             username: "",
             password: None,
             host: None,
@@ -22,7 +23,9 @@
                 },
             },
             severity: Some(
-                Information,
+                DiagnosticSeverity(
+                    3,
+                ),
             ),
             code: Some(
                 String(
@@ -40,6 +43,7 @@
                         location: Location {
                             uri: Url {
                                 scheme: "file",
+                                cannot_be_a_base: false,
                                 username: "",
                                 password: None,
                                 host: None,
                                 },
                             },
                         },
-                        message: "consider prefixing with an underscore",
+                        message: "consider prefixing with an underscore: `_foo`",
                     },
                 ],
             ),
             tags: Some(
                 [
-                    Unnecessary,
+                    DiagnosticTag(
+                        1,
+                    ),
                 ],
             ),
             data: None,
@@ -75,6 +81,7 @@
     MappedRustDiagnostic {
         url: Url {
             scheme: "file",
+            cannot_be_a_base: false,
             username: "",
             password: None,
             host: None,
                 },
             },
             severity: Some(
-                Hint,
+                DiagnosticSeverity(
+                    4,
+                ),
             ),
             code: Some(
                 String(
             source: Some(
                 "rustc",
             ),
-            message: "consider prefixing with an underscore",
+            message: "consider prefixing with an underscore: `_foo`",
             related_information: Some(
                 [
                     DiagnosticRelatedInformation {
                         location: Location {
                             uri: Url {
                                 scheme: "file",
+                                cannot_be_a_base: false,
                                 username: "",
                                 password: None,
                                 host: None,
         },
         fixes: [
             CodeAction {
-                title: "consider prefixing with an underscore",
+                title: "consider prefixing with an underscore: `_foo`",
                 group: None,
                 kind: Some(
                     CodeActionKind(
                             {
                                 Url {
                                     scheme: "file",
+                                    cannot_be_a_base: false,
                                     username: "",
                                     password: None,
                                     host: None,