2020-03-12 09:24:20 -05:00
|
|
|
[
|
|
|
|
MappedRustDiagnostic {
|
2020-07-09 08:35:52 -05:00
|
|
|
url: "file:///test/driver/subcommand/repl.rs",
|
2020-03-12 09:24:20 -05:00
|
|
|
diagnostic: Diagnostic {
|
|
|
|
range: Range {
|
|
|
|
start: Position {
|
|
|
|
line: 290,
|
|
|
|
character: 8,
|
|
|
|
},
|
|
|
|
end: Position {
|
|
|
|
line: 290,
|
|
|
|
character: 11,
|
|
|
|
},
|
2019-12-25 10:31:49 -06:00
|
|
|
},
|
2020-03-12 09:24:20 -05:00
|
|
|
severity: Some(
|
2020-06-12 11:39:50 -05:00
|
|
|
Warning,
|
2019-12-25 10:31:49 -06:00
|
|
|
),
|
2020-03-12 09:24:20 -05:00
|
|
|
code: Some(
|
|
|
|
String(
|
|
|
|
"unused_variables",
|
|
|
|
),
|
2020-02-03 05:24:57 -06:00
|
|
|
),
|
2020-03-12 09:24:20 -05:00
|
|
|
source: Some(
|
|
|
|
"rustc",
|
|
|
|
),
|
|
|
|
message: "unused variable: `foo`\n#[warn(unused_variables)] on by default",
|
|
|
|
related_information: None,
|
|
|
|
tags: Some(
|
|
|
|
[
|
|
|
|
Unnecessary,
|
|
|
|
],
|
2020-02-03 05:24:57 -06:00
|
|
|
),
|
2019-12-25 10:31:49 -06:00
|
|
|
},
|
2020-03-12 09:24:20 -05:00
|
|
|
fixes: [
|
|
|
|
CodeAction {
|
|
|
|
title: "consider prefixing with an underscore",
|
2020-06-02 15:21:48 -05:00
|
|
|
id: None,
|
2020-05-22 10:29:55 -05:00
|
|
|
group: None,
|
2020-03-12 09:24:20 -05:00
|
|
|
kind: Some(
|
2020-07-11 17:23:08 -05:00
|
|
|
CodeActionKind(
|
|
|
|
"quickfix",
|
|
|
|
),
|
2020-03-12 09:24:20 -05:00
|
|
|
),
|
|
|
|
edit: Some(
|
2020-05-17 17:11:40 -05:00
|
|
|
SnippetWorkspaceEdit {
|
2020-03-12 09:24:20 -05:00
|
|
|
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,
|
|
|
|
},
|
|
|
|
),
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
]
|