]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/unused_parens_json_suggestion.stderr
Adjust json errors to byte changes
[rust.git] / src / test / ui / lint / unused_parens_json_suggestion.stderr
1 {
2   "message": "unnecessary parentheses around assigned value",
3   "code": {
4     "code": "unused_parens",
5     "explanation": null
6   },
7   "level": "warning",
8   "spans": [
9     {
10       "file_name": "$DIR/unused_parens_json_suggestion.rs",
11       "byte_start": 1027,
12       "byte_end": 1040,
13       "line_start": 24,
14       "line_end": 24,
15       "column_start": 14,
16       "column_end": 27,
17       "is_primary": true,
18       "text": [
19         {
20           "text": "    let _a = (1 / (2 + 3));",
21           "highlight_start": 14,
22           "highlight_end": 27
23         }
24       ],
25       "label": null,
26       "suggested_replacement": null,
27       "expansion": null
28     }
29   ],
30   "children": [
31     {
32       "message": "lint level defined here",
33       "code": null,
34       "level": "note",
35       "spans": [
36         {
37           "file_name": "$DIR/unused_parens_json_suggestion.rs",
38           "byte_start": 873,
39           "byte_end": 886,
40           "line_start": 19,
41           "line_end": 19,
42           "column_start": 9,
43           "column_end": 22,
44           "is_primary": true,
45           "text": [
46             {
47               "text": "#![warn(unused_parens)]",
48               "highlight_start": 9,
49               "highlight_end": 22
50             }
51           ],
52           "label": null,
53           "suggested_replacement": null,
54           "expansion": null
55         }
56       ],
57       "children": [],
58       "rendered": null
59     },
60     {
61       "message": "remove these parentheses",
62       "code": null,
63       "level": "help",
64       "spans": [
65         {
66           "file_name": "$DIR/unused_parens_json_suggestion.rs",
67           "byte_start": 1027,
68           "byte_end": 1040,
69           "line_start": 24,
70           "line_end": 24,
71           "column_start": 14,
72           "column_end": 27,
73           "is_primary": true,
74           "text": [
75             {
76               "text": "    let _a = (1 / (2 + 3));",
77               "highlight_start": 14,
78               "highlight_end": 27
79             }
80           ],
81           "label": null,
82           "suggested_replacement": "1 / (2 + 3)",
83           "expansion": null
84         }
85       ],
86       "children": [],
87       "rendered": null
88     }
89   ],
90   "rendered": null
91 }