2020-03-12 09:24:20 -05:00
[
MappedRustDiagnostic {
2020-07-09 08:35:52 -05:00
url: "file:///test/compiler/mir/tagset.rs",
2020-03-12 09:24:20 -05:00
diagnostic: Diagnostic {
range: Range {
start: Position {
line: 41,
character: 23,
},
end: Position {
line: 41,
character: 28,
},
2019-12-25 10:31:49 -06:00
},
2020-03-12 09:24:20 -05:00
severity: Some(
Warning,
2019-12-25 10:31:49 -06:00
),
2020-03-12 09:24:20 -05:00
code: Some(
String(
"trivially_copy_pass_by_ref",
),
),
source: Some(
"clippy",
),
message: "this argument is passed by reference, but would be more efficient if passed by value\n#[warn(clippy::trivially_copy_pass_by_ref)] implied by #[warn(clippy::all)]\nfor further information visit https://rust-lang.github.io/rust-clippy/master/index.html#trivially_copy_pass_by_ref",
related_information: Some(
[
DiagnosticRelatedInformation {
location: Location {
uri: "file:///test/compiler/lib.rs",
range: Range {
start: Position {
line: 0,
character: 8,
},
end: Position {
line: 0,
character: 19,
},
2019-12-25 10:31:49 -06:00
},
},
2020-03-12 09:24:20 -05:00
message: "lint level defined here",
2019-12-25 10:31:49 -06:00
},
2020-03-22 09:45:15 -05:00
DiagnosticRelatedInformation {
location: Location {
uri: "file:///test/compiler/mir/tagset.rs",
range: Range {
start: Position {
line: 41,
character: 23,
},
end: Position {
line: 41,
character: 28,
},
},
},
message: "consider passing by value instead",
},
2020-03-12 09:24:20 -05:00
],
2020-02-03 05:24:57 -06:00
),
2020-03-12 09:24:20 -05:00
tags: None,
},
2020-03-22 09:45:15 -05:00
fixes: [],
2020-03-12 09:24:20 -05:00
},
]