MappedRustDiagnostic {
url: Url {
scheme: "file",
+ cannot_be_a_base: false,
+ username: "",
+ password: None,
host: None,
port: None,
path: "/test/driver/subcommand/repl.rs",
},
},
severity: Some(
- Information,
+ DiagnosticSeverity(
+ 3,
+ ),
),
code: Some(
String(
"rustc",
),
message: "unused variable: `foo`\n#[warn(unused_variables)] on by default",
- related_information: None,
+ related_information: Some(
+ [
+ DiagnosticRelatedInformation {
+ location: Location {
+ uri: 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,
+ },
+ range: Range {
+ start: Position {
+ line: 290,
+ character: 8,
+ },
+ end: Position {
+ line: 290,
+ character: 11,
+ },
+ },
+ },
+ message: "consider prefixing with an underscore: `_foo`",
+ },
+ ],
+ ),
tags: Some(
[
- Unnecessary,
+ DiagnosticTag(
+ 1,
+ ),
+ ],
+ ),
+ data: None,
+ },
+ fixes: [],
+ },
+ MappedRustDiagnostic {
+ url: 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,
+ },
+ diagnostic: Diagnostic {
+ range: Range {
+ start: Position {
+ line: 290,
+ character: 8,
+ },
+ end: Position {
+ line: 290,
+ character: 11,
+ },
+ },
+ severity: Some(
+ DiagnosticSeverity(
+ 4,
+ ),
+ ),
+ code: Some(
+ String(
+ "unused_variables",
+ ),
+ ),
+ code_description: None,
+ source: Some(
+ "rustc",
+ ),
+ message: "consider prefixing with an underscore: `_foo`",
+ related_information: Some(
+ [
+ DiagnosticRelatedInformation {
+ location: Location {
+ uri: 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,
+ },
+ range: Range {
+ start: Position {
+ line: 290,
+ character: 8,
+ },
+ end: Position {
+ line: 290,
+ character: 11,
+ },
+ },
+ },
+ message: "original diagnostic",
+ },
],
),
+ tags: None,
data: None,
},
fixes: [
CodeAction {
- title: "consider prefixing with an underscore",
+ title: "consider prefixing with an underscore: `_foo`",
group: None,
kind: Some(
CodeActionKind(
{
Url {
scheme: "file",
+ cannot_be_a_base: false,
+ username: "",
+ password: None,
host: None,
port: None,
path: "/test/driver/subcommand/repl.rs",
},
),
document_changes: None,
+ change_annotations: None,
},
),
is_preferred: Some(