Update expected test results

This commit is contained in:
Brandon 2021-12-04 21:26:07 -08:00
parent 0d1910c6fb
commit fa2818551e
10 changed files with 348 additions and 268 deletions

View File

@ -114,7 +114,7 @@
tags: None, tags: None,
data: None, data: None,
}, },
fixes: [], fix: None,
}, },
MappedRustDiagnostic { MappedRustDiagnostic {
url: Url { url: Url {
@ -205,7 +205,7 @@
tags: None, tags: None,
data: None, data: None,
}, },
fixes: [], fix: None,
}, },
MappedRustDiagnostic { MappedRustDiagnostic {
url: Url { url: Url {
@ -296,55 +296,69 @@
tags: None, tags: None,
data: None, data: None,
}, },
fixes: [ fix: Some(
CodeAction { Fix {
title: "consider passing by value instead: `self`", ranges: [
group: None, Range {
kind: Some( start: Position {
CodeActionKind( line: 41,
"quickfix", character: 23,
), },
), end: Position {
edit: Some( line: 41,
SnippetWorkspaceEdit { character: 28,
changes: Some( },
{
Url {
scheme: "file",
cannot_be_a_base: false,
username: "",
password: None,
host: None,
port: None,
path: "/test/compiler/mir/tagset.rs",
query: None,
fragment: None,
}: [
TextEdit {
range: Range {
start: Position {
line: 41,
character: 23,
},
end: Position {
line: 41,
character: 28,
},
},
new_text: "self",
},
],
},
),
document_changes: None,
change_annotations: None,
}, },
), ],
is_preferred: Some( action: CodeAction {
true, title: "consider passing by value instead: `self`",
), group: None,
data: None, kind: Some(
CodeActionKind(
"quickfix",
),
),
edit: Some(
SnippetWorkspaceEdit {
changes: Some(
{
Url {
scheme: "file",
cannot_be_a_base: false,
username: "",
password: None,
host: None,
port: None,
path: "/test/compiler/mir/tagset.rs",
query: None,
fragment: None,
}: [
TextEdit {
range: Range {
start: Position {
line: 41,
character: 23,
},
end: Position {
line: 41,
character: 28,
},
},
new_text: "self",
},
],
},
),
document_changes: None,
change_annotations: None,
},
),
is_preferred: Some(
true,
),
data: None,
},
}, },
], ),
}, },
] ]

View File

@ -59,6 +59,6 @@
tags: None, tags: None,
data: None, data: None,
}, },
fixes: [], fix: None,
}, },
] ]

View File

@ -64,7 +64,7 @@
tags: None, tags: None,
data: None, data: None,
}, },
fixes: [], fix: None,
}, },
MappedRustDiagnostic { MappedRustDiagnostic {
url: Url { url: Url {
@ -131,7 +131,7 @@
tags: None, tags: None,
data: None, data: None,
}, },
fixes: [], fix: None,
}, },
MappedRustDiagnostic { MappedRustDiagnostic {
url: Url { url: Url {
@ -224,6 +224,6 @@
tags: None, tags: None,
data: None, data: None,
}, },
fixes: [], fix: None,
}, },
] ]

View File

@ -59,6 +59,6 @@
tags: None, tags: None,
data: None, data: None,
}, },
fixes: [], fix: None,
}, },
] ]

View File

@ -59,6 +59,6 @@
tags: None, tags: None,
data: None, data: None,
}, },
fixes: [], fix: None,
}, },
] ]

View File

@ -72,7 +72,7 @@
), ),
data: None, data: None,
}, },
fixes: [], fix: None,
}, },
MappedRustDiagnostic { MappedRustDiagnostic {
url: Url { url: Url {
@ -143,55 +143,69 @@
tags: None, tags: None,
data: None, data: None,
}, },
fixes: [ fix: Some(
CodeAction { Fix {
title: "consider prefixing with an underscore: `_foo`", ranges: [
group: None, Range {
kind: Some( start: Position {
CodeActionKind( line: 290,
"quickfix", character: 8,
), },
), end: Position {
edit: Some( line: 290,
SnippetWorkspaceEdit { character: 11,
changes: Some( },
{
Url {
scheme: "file",
cannot_be_a_base: false,
username: "",
password: None,
host: None,
port: None,
path: "/test/driver/subcommand/repl.rs",
query: None,
fragment: None,
}: [
TextEdit {
range: Range {
start: Position {
line: 290,
character: 8,
},
end: Position {
line: 290,
character: 11,
},
},
new_text: "_foo",
},
],
},
),
document_changes: None,
change_annotations: None,
}, },
), ],
is_preferred: Some( action: CodeAction {
true, title: "consider prefixing with an underscore: `_foo`",
), group: None,
data: None, kind: Some(
CodeActionKind(
"quickfix",
),
),
edit: Some(
SnippetWorkspaceEdit {
changes: Some(
{
Url {
scheme: "file",
cannot_be_a_base: false,
username: "",
password: None,
host: None,
port: None,
path: "/test/driver/subcommand/repl.rs",
query: None,
fragment: None,
}: [
TextEdit {
range: Range {
start: Position {
line: 290,
character: 8,
},
end: Position {
line: 290,
character: 11,
},
},
new_text: "_foo",
},
],
},
),
document_changes: None,
change_annotations: None,
},
),
is_preferred: Some(
true,
),
data: None,
},
}, },
], ),
}, },
] ]

View File

@ -72,7 +72,7 @@
), ),
data: None, data: None,
}, },
fixes: [], fix: None,
}, },
MappedRustDiagnostic { MappedRustDiagnostic {
url: Url { url: Url {
@ -143,55 +143,69 @@
tags: None, tags: None,
data: None, data: None,
}, },
fixes: [ fix: Some(
CodeAction { Fix {
title: "consider prefixing with an underscore: `_foo`", ranges: [
group: None, Range {
kind: Some( start: Position {
CodeActionKind( line: 290,
"quickfix", character: 8,
), },
), end: Position {
edit: Some( line: 290,
SnippetWorkspaceEdit { character: 11,
changes: Some( },
{
Url {
scheme: "file",
cannot_be_a_base: false,
username: "",
password: None,
host: None,
port: None,
path: "/test/driver/subcommand/repl.rs",
query: None,
fragment: None,
}: [
TextEdit {
range: Range {
start: Position {
line: 290,
character: 8,
},
end: Position {
line: 290,
character: 11,
},
},
new_text: "_foo",
},
],
},
),
document_changes: None,
change_annotations: None,
}, },
), ],
is_preferred: Some( action: CodeAction {
true, title: "consider prefixing with an underscore: `_foo`",
), group: None,
data: None, kind: Some(
CodeActionKind(
"quickfix",
),
),
edit: Some(
SnippetWorkspaceEdit {
changes: Some(
{
Url {
scheme: "file",
cannot_be_a_base: false,
username: "",
password: None,
host: None,
port: None,
path: "/test/driver/subcommand/repl.rs",
query: None,
fragment: None,
}: [
TextEdit {
range: Range {
start: Position {
line: 290,
character: 8,
},
end: Position {
line: 290,
character: 11,
},
},
new_text: "_foo",
},
],
},
),
document_changes: None,
change_annotations: None,
},
),
is_preferred: Some(
true,
),
data: None,
},
}, },
], ),
}, },
] ]

View File

@ -72,7 +72,7 @@
), ),
data: None, data: None,
}, },
fixes: [], fix: None,
}, },
MappedRustDiagnostic { MappedRustDiagnostic {
url: Url { url: Url {
@ -143,55 +143,69 @@
tags: None, tags: None,
data: None, data: None,
}, },
fixes: [ fix: Some(
CodeAction { Fix {
title: "consider prefixing with an underscore: `_foo`", ranges: [
group: None, Range {
kind: Some( start: Position {
CodeActionKind( line: 290,
"quickfix", character: 8,
), },
), end: Position {
edit: Some( line: 290,
SnippetWorkspaceEdit { character: 11,
changes: Some( },
{
Url {
scheme: "file",
cannot_be_a_base: false,
username: "",
password: None,
host: None,
port: None,
path: "/test/driver/subcommand/repl.rs",
query: None,
fragment: None,
}: [
TextEdit {
range: Range {
start: Position {
line: 290,
character: 8,
},
end: Position {
line: 290,
character: 11,
},
},
new_text: "_foo",
},
],
},
),
document_changes: None,
change_annotations: None,
}, },
), ],
is_preferred: Some( action: CodeAction {
true, title: "consider prefixing with an underscore: `_foo`",
), group: None,
data: None, kind: Some(
CodeActionKind(
"quickfix",
),
),
edit: Some(
SnippetWorkspaceEdit {
changes: Some(
{
Url {
scheme: "file",
cannot_be_a_base: false,
username: "",
password: None,
host: None,
port: None,
path: "/test/driver/subcommand/repl.rs",
query: None,
fragment: None,
}: [
TextEdit {
range: Range {
start: Position {
line: 290,
character: 8,
},
end: Position {
line: 290,
character: 11,
},
},
new_text: "_foo",
},
],
},
),
document_changes: None,
change_annotations: None,
},
),
is_preferred: Some(
true,
),
data: None,
},
}, },
], ),
}, },
] ]

View File

@ -88,7 +88,7 @@
tags: None, tags: None,
data: None, data: None,
}, },
fixes: [], fix: None,
}, },
MappedRustDiagnostic { MappedRustDiagnostic {
url: Url { url: Url {
@ -179,6 +179,6 @@
tags: None, tags: None,
data: None, data: None,
}, },
fixes: [], fix: None,
}, },
] ]

View File

@ -114,7 +114,7 @@
tags: None, tags: None,
data: None, data: None,
}, },
fixes: [], fix: None,
}, },
MappedRustDiagnostic { MappedRustDiagnostic {
url: Url { url: Url {
@ -205,7 +205,7 @@
tags: None, tags: None,
data: None, data: None,
}, },
fixes: [], fix: None,
}, },
MappedRustDiagnostic { MappedRustDiagnostic {
url: Url { url: Url {
@ -296,68 +296,92 @@
tags: None, tags: None,
data: None, data: None,
}, },
fixes: [ fix: Some(
CodeAction { Fix {
title: "return the expression directly: `(0..10).collect()`", ranges: [
group: None, Range {
kind: Some( start: Position {
CodeActionKind( line: 2,
"quickfix", character: 4,
), },
), end: Position {
edit: Some( line: 2,
SnippetWorkspaceEdit { character: 30,
changes: Some( },
{
Url {
scheme: "file",
cannot_be_a_base: false,
username: "",
password: None,
host: None,
port: None,
path: "/test/src/main.rs",
query: None,
fragment: None,
}: [
TextEdit {
range: Range {
start: Position {
line: 2,
character: 4,
},
end: Position {
line: 2,
character: 30,
},
},
new_text: "",
},
TextEdit {
range: Range {
start: Position {
line: 3,
character: 4,
},
end: Position {
line: 3,
character: 5,
},
},
new_text: "(0..10).collect()",
},
],
},
),
document_changes: None,
change_annotations: None,
}, },
), Range {
is_preferred: Some( start: Position {
true, line: 3,
), character: 4,
data: None, },
end: Position {
line: 3,
character: 5,
},
},
],
action: CodeAction {
title: "return the expression directly: `(0..10).collect()`",
group: None,
kind: Some(
CodeActionKind(
"quickfix",
),
),
edit: Some(
SnippetWorkspaceEdit {
changes: Some(
{
Url {
scheme: "file",
cannot_be_a_base: false,
username: "",
password: None,
host: None,
port: None,
path: "/test/src/main.rs",
query: None,
fragment: None,
}: [
TextEdit {
range: Range {
start: Position {
line: 2,
character: 4,
},
end: Position {
line: 2,
character: 30,
},
},
new_text: "",
},
TextEdit {
range: Range {
start: Position {
line: 3,
character: 4,
},
end: Position {
line: 3,
character: 5,
},
},
new_text: "(0..10).collect()",
},
],
},
),
document_changes: None,
change_annotations: None,
},
),
is_preferred: Some(
true,
),
data: None,
},
}, },
], ),
}, },
] ]