Skip to content

Commit 56a0021

Browse files
committed
update diagnostics test_data with code_description changes
1 parent 863fdcf commit 56a0021

File tree

6 files changed

+108
-6
lines changed

6 files changed

+108
-6
lines changed

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

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,24 @@
2727
"trivially_copy_pass_by_ref",
2828
),
2929
),
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+
),
3148
source: Some(
3249
"clippy",
3350
),

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

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,24 @@
2727
"E0277",
2828
),
2929
),
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+
),
3148
source: Some(
3249
"rustc",
3350
),

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

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,24 @@
2727
"E0053",
2828
),
2929
),
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+
),
3148
source: Some(
3249
"rustc",
3350
),

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

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,24 @@
2727
"E0308",
2828
),
2929
),
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+
),
3148
source: Some(
3249
"rustc",
3350
),

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

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,24 @@
2727
"E0061",
2828
),
2929
),
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+
),
3148
source: Some(
3249
"rustc",
3350
),

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

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,24 @@
2727
"let_and_return",
2828
),
2929
),
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+
),
3148
source: Some(
3249
"clippy",
3350
),

0 commit comments

Comments
 (0)