]> git.lizzy.rs Git - rust.git/commitdiff
update diagnostics test_data with code_description changes
authorLukas Wirth <lukastw97@gmail.com>
Tue, 17 Nov 2020 21:49:38 +0000 (22:49 +0100)
committerLukas Wirth <lukastw97@gmail.com>
Wed, 18 Nov 2020 07:50:27 +0000 (08:50 +0100)
crates/rust-analyzer/src/diagnostics/test_data/clippy_pass_by_ref.txt
crates/rust-analyzer/src/diagnostics/test_data/handles_macro_location.txt
crates/rust-analyzer/src/diagnostics/test_data/rustc_incompatible_type_for_trait.txt
crates/rust-analyzer/src/diagnostics/test_data/rustc_mismatched_type.txt
crates/rust-analyzer/src/diagnostics/test_data/rustc_wrong_number_of_parameters.txt
crates/rust-analyzer/src/diagnostics/test_data/snap_multi_line_fix.txt

index 5b2e5187ac816f62c4cb7f5ac21ba4292fde4733..72f6c5725476f05e8b895881a0d1fed9deec6c10 100644 (file)
                     "trivially_copy_pass_by_ref",
                 ),
             ),
-            code_description: None,
+            code_description: Some(
+                CodeDescription {
+                    href: Url {
+                        scheme: "https",
+                        host: Some(
+                            Domain(
+                                "rust-lang.github.io",
+                            ),
+                        ),
+                        port: None,
+                        path: "/rust-clippy/master/index.html",
+                        query: None,
+                        fragment: Some(
+                            "trivially_copy_pass_by_ref",
+                        ),
+                    },
+                },
+            ),
             source: Some(
                 "clippy",
             ),
index 116f0ff73426c2ad8c31ad2cb868fc7c7698e9e1..eb4a6b597b2f9c1f0c86a017055fed40a2ff0361 100644 (file)
                     "E0277",
                 ),
             ),
-            code_description: None,
+            code_description: Some(
+                CodeDescription {
+                    href: Url {
+                        scheme: "https",
+                        host: Some(
+                            Domain(
+                                "doc.rust-lang.org",
+                            ),
+                        ),
+                        port: None,
+                        path: "/error-index.html",
+                        query: None,
+                        fragment: Some(
+                            "E0277",
+                        ),
+                    },
+                },
+            ),
             source: Some(
                 "rustc",
             ),
index 2cbf657e59fed7c2ee0561b12a92ea821c1cc45d..19f72196dac4c497d6aac910af0c877f5213ea76 100644 (file)
                     "E0053",
                 ),
             ),
-            code_description: None,
+            code_description: Some(
+                CodeDescription {
+                    href: Url {
+                        scheme: "https",
+                        host: Some(
+                            Domain(
+                                "doc.rust-lang.org",
+                            ),
+                        ),
+                        port: None,
+                        path: "/error-index.html",
+                        query: None,
+                        fragment: Some(
+                            "E0053",
+                        ),
+                    },
+                },
+            ),
             source: Some(
                 "rustc",
             ),
index 1142dc2ac6752df19dc0534eeb8f1fa18e97670e..15ac95d7218ac80caf0ae094ab813482ec40d058 100644 (file)
                     "E0308",
                 ),
             ),
-            code_description: None,
+            code_description: Some(
+                CodeDescription {
+                    href: Url {
+                        scheme: "https",
+                        host: Some(
+                            Domain(
+                                "doc.rust-lang.org",
+                            ),
+                        ),
+                        port: None,
+                        path: "/error-index.html",
+                        query: None,
+                        fragment: Some(
+                            "E0308",
+                        ),
+                    },
+                },
+            ),
             source: Some(
                 "rustc",
             ),
index 782c72dbdc5163936a1f210c6aaed864fd1bd4a4..b9650f3e45ebb47a6eda20b178e5221b3d432c33 100644 (file)
                     "E0061",
                 ),
             ),
-            code_description: None,
+            code_description: Some(
+                CodeDescription {
+                    href: Url {
+                        scheme: "https",
+                        host: Some(
+                            Domain(
+                                "doc.rust-lang.org",
+                            ),
+                        ),
+                        port: None,
+                        path: "/error-index.html",
+                        query: None,
+                        fragment: Some(
+                            "E0061",
+                        ),
+                    },
+                },
+            ),
             source: Some(
                 "rustc",
             ),
index d3f27ab6a5467ad31f71ab0e092c862944134084..c45f68a916d016b3b2d1433ca2459f8f5535d50c 100644 (file)
                     "let_and_return",
                 ),
             ),
-            code_description: None,
+            code_description: Some(
+                CodeDescription {
+                    href: Url {
+                        scheme: "https",
+                        host: Some(
+                            Domain(
+                                "rust-lang.github.io",
+                            ),
+                        ),
+                        port: None,
+                        path: "/rust-clippy/master/index.html",
+                        query: None,
+                        fragment: Some(
+                            "let_and_return",
+                        ),
+                    },
+                },
+            ),
             source: Some(
                 "clippy",
             ),