]> git.proxmox.com Git - rustc.git/blame - src/test/ui/lint/unused_parens_remove_json_suggestion.stderr
New upstream version 1.43.0+dfsg1
[rustc.git] / src / test / ui / lint / unused_parens_remove_json_suggestion.stderr
CommitLineData
e74abb32
XL
1{"message":"unnecessary parentheses around `if` condition","code":{"code":"unused_parens","explanation":null},"level":"error","spans":[{"file_name":"$DIR/unused_parens_remove_json_suggestion.rs","byte_start":500,"byte_end":504,"line_start":17,"line_end":17,"column_start":8,"column_end":12,"is_primary":true,"text":[{"text":" if (_b) {
2 --> $DIR/unused_parens_remove_json_suggestion.rs:17:8
416331ca
XL
3 |
4LL | if (_b) {
5 | ^^^^ help: remove these parentheses
6 |
74b04a01 7note: the lint level is defined here
e74abb32 8 --> $DIR/unused_parens_remove_json_suggestion.rs:10:9
416331ca 9 |
e74abb32 10LL | #![deny(unused_parens)]
416331ca
XL
11 | ^^^^^^^^^^^^^
12
e74abb32
XL
13"}
14{"message":"unnecessary parentheses around `if` condition","code":{"code":"unused_parens","explanation":null},"level":"error","spans":[{"file_name":"$DIR/unused_parens_remove_json_suggestion.rs","byte_start":631,"byte_end":634,"line_start":28,"line_end":28,"column_start":7,"column_end":10,"is_primary":true,"text":[{"text":" if(c) {
15 --> $DIR/unused_parens_remove_json_suggestion.rs:28:7
416331ca
XL
16 |
17LL | if(c) {
18 | ^^^ help: remove these parentheses
19
e74abb32
XL
20"}
21{"message":"unnecessary parentheses around `if` condition","code":{"code":"unused_parens","explanation":null},"level":"error","spans":[{"file_name":"$DIR/unused_parens_remove_json_suggestion.rs","byte_start":711,"byte_end":714,"line_start":32,"line_end":32,"column_start":8,"column_end":11,"is_primary":true,"text":[{"text":" if (c){
22 --> $DIR/unused_parens_remove_json_suggestion.rs:32:8
416331ca
XL
23 |
24LL | if (c){
25 | ^^^ help: remove these parentheses
26
e74abb32
XL
27"}
28{"message":"unnecessary parentheses around `while` condition","code":{"code":"unused_parens","explanation":null},"level":"error","spans":[{"file_name":"$DIR/unused_parens_remove_json_suggestion.rs","byte_start":793,"byte_end":808,"line_start":36,"line_end":36,"column_start":11,"column_end":26,"is_primary":true,"text":[{"text":" while (false && true){","highlight_start":11,"highlight_end":26}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"remove these parentheses","code":null,"level":"help","spans":[{"file_name":"$DIR/unused_parens_remove_json_suggestion.rs","byte_start":793,"byte_end":808,"line_start":36,"line_end":36,"column_start":11,"column_end":26,"is_primary":true,"text":[{"text":" while (false && true){","highlight_start":11,"highlight_end":26}],"label":null,"suggested_replacement":"false && true ","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"error: unnecessary parentheses around `while` condition
29 --> $DIR/unused_parens_remove_json_suggestion.rs:36:11
416331ca
XL
30 |
31LL | while (false && true){
32 | ^^^^^^^^^^^^^^^ help: remove these parentheses
33
e74abb32
XL
34"}
35{"message":"unnecessary parentheses around `if` condition","code":{"code":"unused_parens","explanation":null},"level":"error","spans":[{"file_name":"$DIR/unused_parens_remove_json_suggestion.rs","byte_start":821,"byte_end":824,"line_start":37,"line_end":37,"column_start":12,"column_end":15,"is_primary":true,"text":[{"text":" if (c) {
36 --> $DIR/unused_parens_remove_json_suggestion.rs:37:12
416331ca
XL
37 |
38LL | if (c) {
39 | ^^^ help: remove these parentheses
40
e74abb32
XL
41"}
42{"message":"unnecessary parentheses around `while` condition","code":{"code":"unused_parens","explanation":null},"level":"error","spans":[{"file_name":"$DIR/unused_parens_remove_json_suggestion.rs","byte_start":918,"byte_end":933,"line_start":43,"line_end":43,"column_start":10,"column_end":25,"is_primary":true,"text":[{"text":" while(true && false) {
43 --> $DIR/unused_parens_remove_json_suggestion.rs:43:10
416331ca
XL
44 |
45LL | while(true && false) {
46 | ^^^^^^^^^^^^^^^ help: remove these parentheses
47
e74abb32
XL
48"}
49{"message":"unnecessary parentheses around `for` head expression","code":{"code":"unused_parens","explanation":null},"level":"error","spans":[{"file_name":"$DIR/unused_parens_remove_json_suggestion.rs","byte_start":987,"byte_end":995,"line_start":44,"line_end":44,"column_start":18,"column_end":26,"is_primary":true,"text":[{"text":" for _ in (0 .. 3){
50 --> $DIR/unused_parens_remove_json_suggestion.rs:44:18
416331ca
XL
51 |
52LL | for _ in (0 .. 3){
53 | ^^^^^^^^ help: remove these parentheses
54
e74abb32
XL
55"}
56{"message":"unnecessary parentheses around `for` head expression","code":{"code":"unused_parens","explanation":null},"level":"error","spans":[{"file_name":"$DIR/unused_parens_remove_json_suggestion.rs","byte_start":1088,"byte_end":1096,"line_start":49,"line_end":49,"column_start":14,"column_end":22,"is_primary":true,"text":[{"text":" for _ in (0 .. 3) {
57 --> $DIR/unused_parens_remove_json_suggestion.rs:49:14
416331ca
XL
58 |
59LL | for _ in (0 .. 3) {
60 | ^^^^^^^^ help: remove these parentheses
61
e74abb32
XL
62"}
63{"message":"unnecessary parentheses around `while` condition","code":{"code":"unused_parens","explanation":null},"level":"error","spans":[{"file_name":"$DIR/unused_parens_remove_json_suggestion.rs","byte_start":1147,"byte_end":1162,"line_start":50,"line_end":50,"column_start":15,"column_end":30,"is_primary":true,"text":[{"text":" while (true && false) {
64 --> $DIR/unused_parens_remove_json_suggestion.rs:50:15
416331ca
XL
65 |
66LL | while (true && false) {
67 | ^^^^^^^^^^^^^^^ help: remove these parentheses
68
e74abb32
XL
69"}
70{"message":"aborting due to 9 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 9 previous errors
71
72"}