|
4 | 4 | "code": "unused_parens", |
5 | 5 | "explanation": null |
6 | 6 | }, |
7 | | - "level": "warning", |
| 7 | + "level": "error", |
8 | 8 | "spans": [ |
9 | 9 | { |
10 | 10 | "file_name": "$DIR/unused_parens_json_suggestion.rs", |
11 | | - "byte_start": 654, |
12 | | - "byte_end": 667, |
13 | | - "line_start": 17, |
14 | | - "line_end": 17, |
| 11 | + "byte_start": 603, |
| 12 | + "byte_end": 616, |
| 13 | + "line_start": 16, |
| 14 | + "line_end": 16, |
15 | 15 | "column_start": 14, |
16 | 16 | "column_end": 27, |
17 | 17 | "is_primary": true, |
18 | 18 | "text": [ |
19 | 19 | { |
20 | | - "text": " let _a = (1 / (2 + 3));", |
| 20 | + "text": " let _a = (1 / (2 + 3)); |
21 | 21 | "highlight_start": 14, |
22 | 22 | "highlight_end": 27 |
23 | 23 | } |
|
36 | 36 | "spans": [ |
37 | 37 | { |
38 | 38 | "file_name": "$DIR/unused_parens_json_suggestion.rs", |
39 | | - "byte_start": 472, |
40 | | - "byte_end": 485, |
41 | | - "line_start": 11, |
42 | | - "line_end": 11, |
| 39 | + "byte_start": 421, |
| 40 | + "byte_end": 434, |
| 41 | + "line_start": 10, |
| 42 | + "line_end": 10, |
43 | 43 | "column_start": 9, |
44 | 44 | "column_end": 22, |
45 | 45 | "is_primary": true, |
46 | 46 | "text": [ |
47 | 47 | { |
48 | | - "text": "#![warn(unused_parens)]", |
| 48 | + "text": "#![deny(unused_parens)]", |
49 | 49 | "highlight_start": 9, |
50 | 50 | "highlight_end": 22 |
51 | 51 | } |
|
66 | 66 | "spans": [ |
67 | 67 | { |
68 | 68 | "file_name": "$DIR/unused_parens_json_suggestion.rs", |
69 | | - "byte_start": 654, |
70 | | - "byte_end": 667, |
71 | | - "line_start": 17, |
72 | | - "line_end": 17, |
| 69 | + "byte_start": 603, |
| 70 | + "byte_end": 616, |
| 71 | + "line_start": 16, |
| 72 | + "line_end": 16, |
73 | 73 | "column_start": 14, |
74 | 74 | "column_end": 27, |
75 | 75 | "is_primary": true, |
76 | 76 | "text": [ |
77 | 77 | { |
78 | | - "text": " let _a = (1 / (2 + 3));", |
| 78 | + "text": " let _a = (1 / (2 + 3)); |
79 | 79 | "highlight_start": 14, |
80 | 80 | "highlight_end": 27 |
81 | 81 | } |
|
90 | 90 | "rendered": null |
91 | 91 | } |
92 | 92 | ], |
93 | | - "rendered": "warning: unnecessary parentheses around assigned value |
94 | | - --> $DIR/unused_parens_json_suggestion.rs:17:14 |
| 93 | + "rendered": "error: unnecessary parentheses around assigned value |
| 94 | + --> $DIR/unused_parens_json_suggestion.rs:16:14 |
95 | 95 | | |
96 | 96 | LL | let _a = (1 / (2 + 3)); |
97 | 97 | | ^^^^^^^^^^^^^ help: remove these parentheses |
98 | 98 | | |
99 | 99 | note: lint level defined here |
100 | | - --> $DIR/unused_parens_json_suggestion.rs:11:9 |
| 100 | + --> $DIR/unused_parens_json_suggestion.rs:10:9 |
101 | 101 | | |
102 | | -LL | #![warn(unused_parens)] |
| 102 | +LL | #![deny(unused_parens)] |
103 | 103 | | ^^^^^^^^^^^^^ |
104 | 104 |
|
105 | 105 | " |
106 | 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 |
| 114 | + |
| 115 | +" |
| 116 | +} |
0 commit comments