2020-06-16 15:26:33 -05:00
|
|
|
[
|
|
|
|
MappedRustDiagnostic {
|
2020-07-09 08:35:52 -05:00
|
|
|
url: "file:///test/driver/subcommand/repl.rs",
|
2020-06-16 15:26:33 -05:00
|
|
|
diagnostic: Diagnostic {
|
|
|
|
range: Range {
|
|
|
|
start: Position {
|
|
|
|
line: 290,
|
|
|
|
character: 8,
|
|
|
|
},
|
|
|
|
end: Position {
|
|
|
|
line: 290,
|
|
|
|
character: 11,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
severity: Some(
|
|
|
|
Information,
|
|
|
|
),
|
|
|
|
code: Some(
|
|
|
|
String(
|
|
|
|
"unused_variables",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
source: Some(
|
|
|
|
"rustc",
|
|
|
|
),
|
|
|
|
message: "unused variable: `foo`\n#[warn(unused_variables)] on by default",
|
|
|
|
related_information: None,
|
|
|
|
tags: Some(
|
|
|
|
[
|
|
|
|
Unnecessary,
|
|
|
|
],
|
|
|
|
),
|
|
|
|
},
|
|
|
|
fixes: [
|
|
|
|
CodeAction {
|
|
|
|
title: "consider prefixing with an underscore",
|
|
|
|
id: None,
|
|
|
|
group: None,
|
|
|
|
kind: Some(
|
2020-07-11 17:23:08 -05:00
|
|
|
CodeActionKind(
|
|
|
|
"quickfix",
|
|
|
|
),
|
2020-06-16 15:26:33 -05:00
|
|
|
),
|
|
|
|
edit: Some(
|
|
|
|
SnippetWorkspaceEdit {
|
|
|
|
changes: Some(
|
|
|
|
{
|
|
|
|
"file:///test/driver/subcommand/repl.rs": [
|
|
|
|
TextEdit {
|
|
|
|
range: Range {
|
|
|
|
start: Position {
|
|
|
|
line: 290,
|
|
|
|
character: 8,
|
|
|
|
},
|
|
|
|
end: Position {
|
|
|
|
line: 290,
|
|
|
|
character: 11,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
new_text: "_foo",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
),
|
|
|
|
document_changes: None,
|
|
|
|
},
|
|
|
|
),
|
2020-07-11 18:12:42 -05:00
|
|
|
is_preferred: Some(
|
|
|
|
true,
|
|
|
|
),
|
2020-06-16 15:26:33 -05:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
]
|