aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorLukas Wirth <[email protected]>2020-11-17 21:49:38 +0000
committerLukas Wirth <[email protected]>2020-11-18 07:50:27 +0000
commit56a0021e61e67838b2f258697471ec07b2f3b723 (patch)
treee7142c5410c13c6a030eb5a8abf48a3183513419 /crates
parent863fdcfa249fa4e14f1edc28082bae5f2a7872c7 (diff)
update diagnostics test_data with code_description changes
Diffstat (limited to 'crates')
-rw-r--r--crates/rust-analyzer/src/diagnostics/test_data/clippy_pass_by_ref.txt19
-rw-r--r--crates/rust-analyzer/src/diagnostics/test_data/handles_macro_location.txt19
-rw-r--r--crates/rust-analyzer/src/diagnostics/test_data/rustc_incompatible_type_for_trait.txt19
-rw-r--r--crates/rust-analyzer/src/diagnostics/test_data/rustc_mismatched_type.txt19
-rw-r--r--crates/rust-analyzer/src/diagnostics/test_data/rustc_wrong_number_of_parameters.txt19
-rw-r--r--crates/rust-analyzer/src/diagnostics/test_data/snap_multi_line_fix.txt19
6 files changed, 108 insertions, 6 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 5b2e5187a..72f6c5725 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
@@ -27,7 +27,24 @@
27 "trivially_copy_pass_by_ref", 27 "trivially_copy_pass_by_ref",
28 ), 28 ),
29 ), 29 ),
30 code_description: None, 30 code_description: Some(
31 CodeDescription {
32 href: Url {
33 scheme: "https",
34 host: Some(
35 Domain(
36 "rust-lang.github.io",
37 ),
38 ),
39 port: None,
40 path: "/rust-clippy/master/index.html",
41 query: None,
42 fragment: Some(
43 "trivially_copy_pass_by_ref",
44 ),
45 },
46 },
47 ),
31 source: Some( 48 source: Some(
32 "clippy", 49 "clippy",
33 ), 50 ),
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 116f0ff73..eb4a6b597 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
@@ -27,7 +27,24 @@
27 "E0277", 27 "E0277",
28 ), 28 ),
29 ), 29 ),
30 code_description: None, 30 code_description: Some(
31 CodeDescription {
32 href: Url {
33 scheme: "https",
34 host: Some(
35 Domain(
36 "doc.rust-lang.org",
37 ),
38 ),
39 port: None,
40 path: "/error-index.html",
41 query: None,
42 fragment: Some(
43 "E0277",
44 ),
45 },
46 },
47 ),
31 source: Some( 48 source: Some(
32 "rustc", 49 "rustc",
33 ), 50 ),
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 2cbf657e5..19f72196d 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
@@ -27,7 +27,24 @@
27 "E0053", 27 "E0053",
28 ), 28 ),
29 ), 29 ),
30 code_description: None, 30 code_description: Some(
31 CodeDescription {
32 href: Url {
33 scheme: "https",
34 host: Some(
35 Domain(
36 "doc.rust-lang.org",
37 ),
38 ),
39 port: None,
40 path: "/error-index.html",
41 query: None,
42 fragment: Some(
43 "E0053",
44 ),
45 },
46 },
47 ),
31 source: Some( 48 source: Some(
32 "rustc", 49 "rustc",
33 ), 50 ),
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 1142dc2ac..15ac95d72 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
@@ -27,7 +27,24 @@
27 "E0308", 27 "E0308",
28 ), 28 ),
29 ), 29 ),
30 code_description: None, 30 code_description: Some(
31 CodeDescription {
32 href: Url {
33 scheme: "https",
34 host: Some(
35 Domain(
36 "doc.rust-lang.org",
37 ),
38 ),
39 port: None,
40 path: "/error-index.html",
41 query: None,
42 fragment: Some(
43 "E0308",
44 ),
45 },
46 },
47 ),
31 source: Some( 48 source: Some(
32 "rustc", 49 "rustc",
33 ), 50 ),
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 782c72dbd..b9650f3e4 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
@@ -27,7 +27,24 @@
27 "E0061", 27 "E0061",
28 ), 28 ),
29 ), 29 ),
30 code_description: None, 30 code_description: Some(
31 CodeDescription {
32 href: Url {
33 scheme: "https",
34 host: Some(
35 Domain(
36 "doc.rust-lang.org",
37 ),
38 ),
39 port: None,
40 path: "/error-index.html",
41 query: None,
42 fragment: Some(
43 "E0061",
44 ),
45 },
46 },
47 ),
31 source: Some( 48 source: Some(
32 "rustc", 49 "rustc",
33 ), 50 ),
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 d3f27ab6a..c45f68a91 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
@@ -27,7 +27,24 @@
27 "let_and_return", 27 "let_and_return",
28 ), 28 ),
29 ), 29 ),
30 code_description: None, 30 code_description: Some(
31 CodeDescription {
32 href: Url {
33 scheme: "https",
34 host: Some(
35 Domain(
36 "rust-lang.github.io",
37 ),
38 ),
39 port: None,
40 path: "/rust-clippy/master/index.html",
41 query: None,
42 fragment: Some(
43 "let_and_return",
44 ),
45 },
46 },
47 ),
31 source: Some( 48 source: Some(
32 "clippy", 49 "clippy",
33 ), 50 ),