2020-03-12 09:24:20 -05:00
|
|
|
[
|
|
|
|
MappedRustDiagnostic {
|
2020-07-09 08:35:52 -05:00
|
|
|
url: "file:///test/src/main.rs",
|
2020-03-12 09:24:20 -05:00
|
|
|
diagnostic: Diagnostic {
|
|
|
|
range: Range {
|
|
|
|
start: Position {
|
|
|
|
line: 1,
|
|
|
|
character: 4,
|
|
|
|
},
|
|
|
|
end: Position {
|
|
|
|
line: 1,
|
|
|
|
character: 26,
|
|
|
|
},
|
2019-12-25 10:31:49 -06:00
|
|
|
},
|
2020-03-12 09:24:20 -05:00
|
|
|
severity: Some(
|
|
|
|
Error,
|
2019-12-25 10:31:49 -06:00
|
|
|
),
|
2020-03-12 09:24:20 -05:00
|
|
|
code: Some(
|
|
|
|
String(
|
|
|
|
"E0277",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
source: Some(
|
|
|
|
"rustc",
|
|
|
|
),
|
|
|
|
message: "can\'t compare `{integer}` with `&str`\nthe trait `std::cmp::PartialEq<&str>` is not implemented for `{integer}`",
|
|
|
|
related_information: None,
|
|
|
|
tags: None,
|
|
|
|
},
|
|
|
|
fixes: [],
|
2019-12-25 10:31:49 -06:00
|
|
|
},
|
2020-03-12 09:24:20 -05:00
|
|
|
]
|