2020-03-12 09:24:20 -05:00
|
|
|
[
|
|
|
|
MappedRustDiagnostic {
|
2020-07-09 08:35:52 -05:00
|
|
|
url: "file:///test/compiler/ty/select.rs",
|
2020-03-12 09:24:20 -05:00
|
|
|
diagnostic: Diagnostic {
|
|
|
|
range: Range {
|
|
|
|
start: Position {
|
|
|
|
line: 103,
|
|
|
|
character: 17,
|
|
|
|
},
|
|
|
|
end: Position {
|
|
|
|
line: 103,
|
|
|
|
character: 29,
|
|
|
|
},
|
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(
|
|
|
|
"E0061",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
source: Some(
|
|
|
|
"rustc",
|
|
|
|
),
|
|
|
|
message: "this function takes 2 parameters but 3 parameters were supplied\nexpected 2 parameters",
|
|
|
|
related_information: Some(
|
|
|
|
[
|
|
|
|
DiagnosticRelatedInformation {
|
|
|
|
location: Location {
|
|
|
|
uri: "file:///test/compiler/ty/select.rs",
|
|
|
|
range: Range {
|
|
|
|
start: Position {
|
|
|
|
line: 218,
|
|
|
|
character: 4,
|
|
|
|
},
|
|
|
|
end: Position {
|
|
|
|
line: 230,
|
|
|
|
character: 5,
|
|
|
|
},
|
2019-12-25 10:31:49 -06:00
|
|
|
},
|
|
|
|
},
|
2020-03-12 09:24:20 -05:00
|
|
|
message: "defined here",
|
2019-12-25 10:31:49 -06:00
|
|
|
},
|
2020-03-12 09:24:20 -05:00
|
|
|
],
|
|
|
|
),
|
|
|
|
tags: None,
|
|
|
|
},
|
|
|
|
fixes: [],
|
2019-12-25 10:31:49 -06:00
|
|
|
},
|
2020-03-12 09:24:20 -05:00
|
|
|
]
|