1- {
2- "message": "unnecessary parentheses around assigned value",
3- "code": {
4- "code": "unused_parens",
5- "explanation": null
6- },
7- "level": "error",
8- "spans": [
9- {
10- "file_name": "$DIR/unused_parens_json_suggestion.rs",
11- "byte_start": 603,
12- "byte_end": 616,
13- "line_start": 16,
14- "line_end": 16,
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- "suggestion_applicability": null,
28- "expansion": null
29- }
30- ],
31- "children": [
32- {
33- "message": "lint level defined here",
34- "code": null,
35- "level": "note",
36- "spans": [
37- {
38- "file_name": "$DIR/unused_parens_json_suggestion.rs",
39- "byte_start": 421,
40- "byte_end": 434,
41- "line_start": 10,
42- "line_end": 10,
43- "column_start": 9,
44- "column_end": 22,
45- "is_primary": true,
46- "text": [
47- {
48- "text": "#![deny(unused_parens)]",
49- "highlight_start": 9,
50- "highlight_end": 22
51- }
52- ],
53- "label": null,
54- "suggested_replacement": null,
55- "suggestion_applicability": null,
56- "expansion": null
57- }
58- ],
59- "children": [],
60- "rendered": null
61- },
62- {
63- "message": "remove these parentheses",
64- "code": null,
65- "level": "help",
66- "spans": [
67- {
68- "file_name": "$DIR/unused_parens_json_suggestion.rs",
69- "byte_start": 603,
70- "byte_end": 616,
71- "line_start": 16,
72- "line_end": 16,
73- "column_start": 14,
74- "column_end": 27,
75- "is_primary": true,
76- "text": [
77- {
78- "text": " let _a = (1 / (2 + 3));
79- "highlight_start": 14,
80- "highlight_end": 27
81- }
82- ],
83- "label": null,
84- "suggested_replacement": "1 / (2 + 3)",
85- "suggestion_applicability": "MachineApplicable",
86- "expansion": null
87- }
88- ],
89- "children": [],
90- "rendered": null
91- }
92- ],
93- "rendered": "error: unnecessary parentheses around assigned value
1+ {"message":"unnecessary parentheses around assigned value","code":{"code":"unused_parens","explanation":null},"level":"error","spans":[{"file_name":"$DIR/unused_parens_json_suggestion.rs","byte_start":596,"byte_end":609,"line_start":16,"line_end":16,"column_start":14,"column_end":27,"is_primary":true,"text":[{"text":" let _a = (1 / (2 + 3));
942 --> $DIR/unused_parens_json_suggestion.rs:16:14
953 |
964LL | let _a = (1 / (2 + 3));
@@ -102,15 +10,7 @@ note: lint level defined here
10210LL | #![deny(unused_parens)]
10311 | ^^^^^^^^^^^^^
10412
105- "
106- }
107- {
108- "message": "aborting due to previous error",
109- "code": null,
110- "level": "error",
111- "spans": [],
112- "children": [],
113- "rendered": "error: aborting due to previous error
13+ "}
14+ {"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error
11415
115- "
116- }
16+ "}
0 commit comments