summaryrefslogtreecommitdiffstats
path: root/src/tools/cargo/crates/rustfix/tests/everything/multiple-solutions.json
blob: 89b14ccc848d39f5ddde75fc60a1c94f509aee3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
{
  "message": "unused imports: `HashMap`, `VecDeque`",
  "code": {
    "code": "unused_imports",
    "explanation": null
  },
  "level": "warning",
  "spans": [
    {
      "file_name": "src/main.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": "src/main.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": "src/main.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": "src/main.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
        }
      ],
      "children": [],
      "rendered": null
    }
  ],
  "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"
}