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,
data: None,
},
fixes: [],
fix: None,
},
MappedRustDiagnostic {
url: Url {
@ -205,7 +205,7 @@
tags: None,
data: None,
},
fixes: [],
fix: None,
},
MappedRustDiagnostic {
url: Url {
@ -296,55 +296,69 @@
tags: None,
data: None,
},
fixes: [
CodeAction {
title: "consider passing by value instead: `self`",
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/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,
fix: Some(
Fix {
ranges: [
Range {
start: Position {
line: 41,
character: 23,
},
end: Position {
line: 41,
character: 28,
},
},
),
is_preferred: Some(
true,
),
data: None,
],
action: CodeAction {
title: "consider passing by value instead: `self`",
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/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,
data: None,
},
fixes: [],
fix: None,
},
]

View File

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

View File

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

View File

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

View File

@ -72,7 +72,7 @@
),
data: None,
},
fixes: [],
fix: None,
},
MappedRustDiagnostic {
url: Url {
@ -143,55 +143,69 @@
tags: None,
data: None,
},
fixes: [
CodeAction {
title: "consider prefixing with an underscore: `_foo`",
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/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,
fix: Some(
Fix {
ranges: [
Range {
start: Position {
line: 290,
character: 8,
},
end: Position {
line: 290,
character: 11,
},
},
),
is_preferred: Some(
true,
),
data: None,
],
action: CodeAction {
title: "consider prefixing with an underscore: `_foo`",
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/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,
},
fixes: [],
fix: None,
},
MappedRustDiagnostic {
url: Url {
@ -143,55 +143,69 @@
tags: None,
data: None,
},
fixes: [
CodeAction {
title: "consider prefixing with an underscore: `_foo`",
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/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,
fix: Some(
Fix {
ranges: [
Range {
start: Position {
line: 290,
character: 8,
},
end: Position {
line: 290,
character: 11,
},
},
),
is_preferred: Some(
true,
),
data: None,
],
action: CodeAction {
title: "consider prefixing with an underscore: `_foo`",
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/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,
},
fixes: [],
fix: None,
},
MappedRustDiagnostic {
url: Url {
@ -143,55 +143,69 @@
tags: None,
data: None,
},
fixes: [
CodeAction {
title: "consider prefixing with an underscore: `_foo`",
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/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,
fix: Some(
Fix {
ranges: [
Range {
start: Position {
line: 290,
character: 8,
},
end: Position {
line: 290,
character: 11,
},
},
),
is_preferred: Some(
true,
),
data: None,
],
action: CodeAction {
title: "consider prefixing with an underscore: `_foo`",
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/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,
data: None,
},
fixes: [],
fix: None,
},
MappedRustDiagnostic {
url: Url {
@ -179,6 +179,6 @@
tags: None,
data: None,
},
fixes: [],
fix: None,
},
]

View File

@ -114,7 +114,7 @@
tags: None,
data: None,
},
fixes: [],
fix: None,
},
MappedRustDiagnostic {
url: Url {
@ -205,7 +205,7 @@
tags: None,
data: None,
},
fixes: [],
fix: None,
},
MappedRustDiagnostic {
url: Url {
@ -296,68 +296,92 @@
tags: None,
data: None,
},
fixes: [
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,
fix: Some(
Fix {
ranges: [
Range {
start: Position {
line: 2,
character: 4,
},
end: Position {
line: 2,
character: 30,
},
},
),
is_preferred: Some(
true,
),
data: None,
Range {
start: Position {
line: 3,
character: 4,
},
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,
},
},
],
),
},
]