mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-25 11:14:46 +00:00
167 lines
4.7 KiB
JSON
167 lines
4.7 KiB
JSON
{
|
|
"$message_type": "diagnostic",
|
|
"message": "unused imports: `HashMap`, `VecDeque`",
|
|
"code": {
|
|
"code": "unused_imports",
|
|
"explanation": null
|
|
},
|
|
"level": "warning",
|
|
"spans": [
|
|
{
|
|
"file_name": "./tests/everything/multiple-solutions.nightly.rs",
|
|
"byte_start": 23,
|
|
"byte_end": 30,
|
|
"line_start": 1,
|
|
"line_end": 1,
|
|
"column_start": 24,
|
|
"column_end": 31,
|
|
"is_primary": true,
|
|
"text": [
|
|
{
|
|
"text": "use std::collections::{HashMap, HashSet, VecDeque};",
|
|
"highlight_start": 24,
|
|
"highlight_end": 31
|
|
}
|
|
],
|
|
"label": null,
|
|
"suggested_replacement": null,
|
|
"suggestion_applicability": null,
|
|
"expansion": null
|
|
},
|
|
{
|
|
"file_name": "./tests/everything/multiple-solutions.nightly.rs",
|
|
"byte_start": 41,
|
|
"byte_end": 49,
|
|
"line_start": 1,
|
|
"line_end": 1,
|
|
"column_start": 42,
|
|
"column_end": 50,
|
|
"is_primary": true,
|
|
"text": [
|
|
{
|
|
"text": "use std::collections::{HashMap, HashSet, VecDeque};",
|
|
"highlight_start": 42,
|
|
"highlight_end": 50
|
|
}
|
|
],
|
|
"label": null,
|
|
"suggested_replacement": null,
|
|
"suggestion_applicability": null,
|
|
"expansion": null
|
|
}
|
|
],
|
|
"children": [
|
|
{
|
|
"message": "`#[warn(unused_imports)]` on by default",
|
|
"code": null,
|
|
"level": "note",
|
|
"spans": [],
|
|
"children": [],
|
|
"rendered": null
|
|
},
|
|
{
|
|
"message": "remove the unused imports",
|
|
"code": null,
|
|
"level": "help",
|
|
"spans": [
|
|
{
|
|
"file_name": "./tests/everything/multiple-solutions.nightly.rs",
|
|
"byte_start": 22,
|
|
"byte_end": 23,
|
|
"line_start": 1,
|
|
"line_end": 1,
|
|
"column_start": 23,
|
|
"column_end": 24,
|
|
"is_primary": true,
|
|
"text": [
|
|
{
|
|
"text": "use std::collections::{HashMap, HashSet, VecDeque};",
|
|
"highlight_start": 23,
|
|
"highlight_end": 24
|
|
}
|
|
],
|
|
"label": null,
|
|
"suggested_replacement": "",
|
|
"suggestion_applicability": "MachineApplicable",
|
|
"expansion": null
|
|
},
|
|
{
|
|
"file_name": "./tests/everything/multiple-solutions.nightly.rs",
|
|
"byte_start": 23,
|
|
"byte_end": 32,
|
|
"line_start": 1,
|
|
"line_end": 1,
|
|
"column_start": 24,
|
|
"column_end": 33,
|
|
"is_primary": true,
|
|
"text": [
|
|
{
|
|
"text": "use std::collections::{HashMap, HashSet, VecDeque};",
|
|
"highlight_start": 24,
|
|
"highlight_end": 33
|
|
}
|
|
],
|
|
"label": null,
|
|
"suggested_replacement": "",
|
|
"suggestion_applicability": "MachineApplicable",
|
|
"expansion": null
|
|
},
|
|
{
|
|
"file_name": "./tests/everything/multiple-solutions.nightly.rs",
|
|
"byte_start": 39,
|
|
"byte_end": 49,
|
|
"line_start": 1,
|
|
"line_end": 1,
|
|
"column_start": 40,
|
|
"column_end": 50,
|
|
"is_primary": true,
|
|
"text": [
|
|
{
|
|
"text": "use std::collections::{HashMap, HashSet, VecDeque};",
|
|
"highlight_start": 40,
|
|
"highlight_end": 50
|
|
}
|
|
],
|
|
"label": null,
|
|
"suggested_replacement": "",
|
|
"suggestion_applicability": "MachineApplicable",
|
|
"expansion": null
|
|
},
|
|
{
|
|
"file_name": "./tests/everything/multiple-solutions.nightly.rs",
|
|
"byte_start": 49,
|
|
"byte_end": 50,
|
|
"line_start": 1,
|
|
"line_end": 1,
|
|
"column_start": 50,
|
|
"column_end": 51,
|
|
"is_primary": true,
|
|
"text": [
|
|
{
|
|
"text": "use std::collections::{HashMap, HashSet, VecDeque};",
|
|
"highlight_start": 50,
|
|
"highlight_end": 51
|
|
}
|
|
],
|
|
"label": null,
|
|
"suggested_replacement": "",
|
|
"suggestion_applicability": "MachineApplicable",
|
|
"expansion": null
|
|
}
|
|
],
|
|
"children": [],
|
|
"rendered": null
|
|
}
|
|
],
|
|
"rendered": "warning: unused imports: `HashMap`, `VecDeque`\n --> ./tests/everything/multiple-solutions.nightly.rs:1:24\n |\n1 | use std::collections::{HashMap, HashSet, VecDeque};\n | ^^^^^^^ ^^^^^^^^\n |\n = note: `#[warn(unused_imports)]` on by default\n\n"
|
|
}
|
|
{
|
|
"$message_type": "diagnostic",
|
|
"message": "1 warning emitted",
|
|
"code": null,
|
|
"level": "warning",
|
|
"spans": [],
|
|
"children": [],
|
|
"rendered": "warning: 1 warning emitted\n\n"
|
|
}
|