|
1 | 1 | {
|
| 2 | + "$message_type": "diagnostic", |
2 | 3 | "message": "unused imports: `HashMap`, `VecDeque`",
|
3 | 4 | "code": {
|
4 | 5 | "code": "unused_imports",
|
|
7 | 8 | "level": "warning",
|
8 | 9 | "spans": [
|
9 | 10 | {
|
10 |
| - "file_name": "src/main.rs", |
| 11 | + "file_name": "./tests/everything/multiple-solutions.nightly.rs", |
11 | 12 | "byte_start": 23,
|
12 | 13 | "byte_end": 30,
|
13 | 14 | "line_start": 1,
|
|
28 | 29 | "expansion": null
|
29 | 30 | },
|
30 | 31 | {
|
31 |
| - "file_name": "src/main.rs", |
| 32 | + "file_name": "./tests/everything/multiple-solutions.nightly.rs", |
32 | 33 | "byte_start": 41,
|
33 | 34 | "byte_end": 49,
|
34 | 35 | "line_start": 1,
|
|
51 | 52 | ],
|
52 | 53 | "children": [
|
53 | 54 | {
|
54 |
| - "message": "#[warn(unused_imports)] on by default", |
| 55 | + "message": "`#[warn(unused_imports)]` on by default", |
55 | 56 | "code": null,
|
56 | 57 | "level": "note",
|
57 | 58 | "spans": [],
|
|
64 | 65 | "level": "help",
|
65 | 66 | "spans": [
|
66 | 67 | {
|
67 |
| - "file_name": "src/main.rs", |
| 68 | + "file_name": "./tests/everything/multiple-solutions.nightly.rs", |
| 69 | + "byte_start": 22, |
| 70 | + "byte_end": 23, |
| 71 | + "line_start": 1, |
| 72 | + "line_end": 1, |
| 73 | + "column_start": 23, |
| 74 | + "column_end": 24, |
| 75 | + "is_primary": true, |
| 76 | + "text": [ |
| 77 | + { |
| 78 | + "text": "use std::collections::{HashMap, HashSet, VecDeque};", |
| 79 | + "highlight_start": 23, |
| 80 | + "highlight_end": 24 |
| 81 | + } |
| 82 | + ], |
| 83 | + "label": null, |
| 84 | + "suggested_replacement": "", |
| 85 | + "suggestion_applicability": "MachineApplicable", |
| 86 | + "expansion": null |
| 87 | + }, |
| 88 | + { |
| 89 | + "file_name": "./tests/everything/multiple-solutions.nightly.rs", |
68 | 90 | "byte_start": 23,
|
69 | 91 | "byte_end": 32,
|
70 | 92 | "line_start": 1,
|
|
85 | 107 | "expansion": null
|
86 | 108 | },
|
87 | 109 | {
|
88 |
| - "file_name": "src/main.rs", |
| 110 | + "file_name": "./tests/everything/multiple-solutions.nightly.rs", |
89 | 111 | "byte_start": 39,
|
90 | 112 | "byte_end": 49,
|
91 | 113 | "line_start": 1,
|
|
104 | 126 | "suggested_replacement": "",
|
105 | 127 | "suggestion_applicability": "MachineApplicable",
|
106 | 128 | "expansion": null
|
| 129 | + }, |
| 130 | + { |
| 131 | + "file_name": "./tests/everything/multiple-solutions.nightly.rs", |
| 132 | + "byte_start": 49, |
| 133 | + "byte_end": 50, |
| 134 | + "line_start": 1, |
| 135 | + "line_end": 1, |
| 136 | + "column_start": 50, |
| 137 | + "column_end": 51, |
| 138 | + "is_primary": true, |
| 139 | + "text": [ |
| 140 | + { |
| 141 | + "text": "use std::collections::{HashMap, HashSet, VecDeque};", |
| 142 | + "highlight_start": 50, |
| 143 | + "highlight_end": 51 |
| 144 | + } |
| 145 | + ], |
| 146 | + "label": null, |
| 147 | + "suggested_replacement": "", |
| 148 | + "suggestion_applicability": "MachineApplicable", |
| 149 | + "expansion": null |
107 | 150 | }
|
108 | 151 | ],
|
109 | 152 | "children": [],
|
110 | 153 | "rendered": null
|
111 | 154 | }
|
112 | 155 | ],
|
113 |
| - "rendered": "warning: unused imports: `HashMap`, `VecDeque`\n --> src/main.rs:1:24\n |\n1 | use std::collections::{HashMap, HashSet, VecDeque};\n | ^^^^^^^ ^^^^^^^^\n |\n = note: #[warn(unused_imports)] on by default\nhelp: remove the unused imports\n |\n1 | use std::collections::{HashSet};\n | -- --\n\n" |
| 156 | + "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" |
| 157 | +} |
| 158 | +{ |
| 159 | + "$message_type": "diagnostic", |
| 160 | + "message": "1 warning emitted", |
| 161 | + "code": null, |
| 162 | + "level": "warning", |
| 163 | + "spans": [], |
| 164 | + "children": [], |
| 165 | + "rendered": "warning: 1 warning emitted\n\n" |
114 | 166 | }
|
0 commit comments