2019-09-03 08:33:30 -05:00
|
|
|
error: unnecessary parentheses around pattern
|
2020-11-21 16:05:17 -06:00
|
|
|
--> $DIR/issue-54538-unused-parens-lint.rs:16:9
|
2019-09-03 08:33:30 -05:00
|
|
|
|
|
|
|
|
LL | let (a) = 0;
|
2021-09-09 09:22:24 -05:00
|
|
|
| ^ ^
|
2018-10-05 21:09:14 -05:00
|
|
|
|
|
2020-01-22 17:57:38 -06:00
|
|
|
note: the lint level is defined here
|
2020-11-21 16:05:17 -06:00
|
|
|
--> $DIR/issue-54538-unused-parens-lint.rs:13:9
|
2018-10-05 21:09:14 -05:00
|
|
|
|
|
2019-09-03 08:33:30 -05:00
|
|
|
LL | #![deny(unused_parens)]
|
2018-10-05 21:09:14 -05:00
|
|
|
| ^^^^^^^^^^^^^
|
2021-09-09 09:22:24 -05:00
|
|
|
help: remove these parentheses
|
|
|
|
|
|
|
|
|
LL - let (a) = 0;
|
|
|
|
LL + let a = 0;
|
2022-06-08 12:34:57 -05:00
|
|
|
|
|
2018-10-05 21:09:14 -05:00
|
|
|
|
2019-09-03 08:33:30 -05:00
|
|
|
error: unnecessary parentheses around pattern
|
2020-11-21 16:05:17 -06:00
|
|
|
--> $DIR/issue-54538-unused-parens-lint.rs:17:9
|
2019-09-03 08:33:30 -05:00
|
|
|
|
|
|
|
|
LL | for (a) in 0..1 {}
|
2021-09-09 09:22:24 -05:00
|
|
|
| ^ ^
|
|
|
|
|
|
|
|
|
help: remove these parentheses
|
|
|
|
|
|
|
|
|
LL - for (a) in 0..1 {}
|
|
|
|
LL + for a in 0..1 {}
|
2022-06-08 12:34:57 -05:00
|
|
|
|
|
2019-09-03 08:33:30 -05:00
|
|
|
|
|
|
|
error: unnecessary parentheses around pattern
|
2020-11-21 16:05:17 -06:00
|
|
|
--> $DIR/issue-54538-unused-parens-lint.rs:18:12
|
2019-09-03 08:33:30 -05:00
|
|
|
|
|
|
|
|
LL | if let (a) = 0 {}
|
2021-09-09 09:22:24 -05:00
|
|
|
| ^ ^
|
|
|
|
|
|
|
|
|
help: remove these parentheses
|
|
|
|
|
|
|
|
|
LL - if let (a) = 0 {}
|
|
|
|
LL + if let a = 0 {}
|
2022-06-08 12:34:57 -05:00
|
|
|
|
|
2019-09-03 08:33:30 -05:00
|
|
|
|
|
|
|
error: unnecessary parentheses around pattern
|
2020-11-21 16:05:17 -06:00
|
|
|
--> $DIR/issue-54538-unused-parens-lint.rs:19:15
|
2019-09-03 08:33:30 -05:00
|
|
|
|
|
|
|
|
LL | while let (a) = 0 {}
|
2021-09-09 09:22:24 -05:00
|
|
|
| ^ ^
|
|
|
|
|
|
|
|
|
help: remove these parentheses
|
|
|
|
|
|
|
|
|
LL - while let (a) = 0 {}
|
|
|
|
LL + while let a = 0 {}
|
2022-06-08 12:34:57 -05:00
|
|
|
|
|
2019-09-03 08:33:30 -05:00
|
|
|
|
|
|
|
error: unnecessary parentheses around pattern
|
2020-11-21 16:05:17 -06:00
|
|
|
--> $DIR/issue-54538-unused-parens-lint.rs:20:12
|
2019-09-03 08:33:30 -05:00
|
|
|
|
|
|
|
|
LL | fn foo((a): u8) {}
|
2021-09-09 09:22:24 -05:00
|
|
|
| ^ ^
|
|
|
|
|
|
|
|
|
help: remove these parentheses
|
|
|
|
|
|
|
|
|
LL - fn foo((a): u8) {}
|
|
|
|
LL + fn foo(a: u8) {}
|
2022-06-08 12:34:57 -05:00
|
|
|
|
|
2019-09-03 08:33:30 -05:00
|
|
|
|
|
|
|
error: unnecessary parentheses around pattern
|
2020-11-21 16:05:17 -06:00
|
|
|
--> $DIR/issue-54538-unused-parens-lint.rs:21:14
|
2019-09-03 08:33:30 -05:00
|
|
|
|
|
|
|
|
LL | let _ = |(a): u8| 0;
|
2021-09-09 09:22:24 -05:00
|
|
|
| ^ ^
|
|
|
|
|
|
|
|
|
help: remove these parentheses
|
|
|
|
|
|
|
|
|
LL - let _ = |(a): u8| 0;
|
|
|
|
LL + let _ = |a: u8| 0;
|
2022-06-08 12:34:57 -05:00
|
|
|
|
|
2019-09-03 08:33:30 -05:00
|
|
|
|
|
|
|
error: unnecessary parentheses around pattern
|
2022-12-09 12:32:06 -06:00
|
|
|
--> $DIR/issue-54538-unused-parens-lint.rs:56:12
|
2019-09-03 08:33:30 -05:00
|
|
|
|
|
|
|
|
LL | if let (0 | 1) = 0 {}
|
2021-09-09 09:22:24 -05:00
|
|
|
| ^ ^
|
|
|
|
|
|
|
|
|
help: remove these parentheses
|
|
|
|
|
|
|
|
|
LL - if let (0 | 1) = 0 {}
|
|
|
|
LL + if let 0 | 1 = 0 {}
|
2022-06-08 12:34:57 -05:00
|
|
|
|
|
2019-09-03 08:33:30 -05:00
|
|
|
|
|
|
|
error: unnecessary parentheses around pattern
|
2022-12-09 12:32:06 -06:00
|
|
|
--> $DIR/issue-54538-unused-parens-lint.rs:57:13
|
2019-09-03 08:33:30 -05:00
|
|
|
|
|
|
|
|
LL | if let ((0 | 1),) = (0,) {}
|
2021-09-09 09:22:24 -05:00
|
|
|
| ^ ^
|
|
|
|
|
|
|
|
|
help: remove these parentheses
|
|
|
|
|
|
|
|
|
LL - if let ((0 | 1),) = (0,) {}
|
|
|
|
LL + if let (0 | 1,) = (0,) {}
|
2022-06-08 12:34:57 -05:00
|
|
|
|
|
2019-09-03 08:33:30 -05:00
|
|
|
|
|
|
|
error: unnecessary parentheses around pattern
|
2022-12-09 12:32:06 -06:00
|
|
|
--> $DIR/issue-54538-unused-parens-lint.rs:58:13
|
2019-09-03 08:33:30 -05:00
|
|
|
|
|
|
|
|
LL | if let [(0 | 1)] = [0] {}
|
2021-09-09 09:22:24 -05:00
|
|
|
| ^ ^
|
|
|
|
|
|
|
|
|
help: remove these parentheses
|
|
|
|
|
|
|
|
|
LL - if let [(0 | 1)] = [0] {}
|
|
|
|
LL + if let [0 | 1] = [0] {}
|
2022-06-08 12:34:57 -05:00
|
|
|
|
|
2019-09-03 08:33:30 -05:00
|
|
|
|
|
|
|
error: unnecessary parentheses around pattern
|
2022-12-09 12:32:06 -06:00
|
|
|
--> $DIR/issue-54538-unused-parens-lint.rs:59:16
|
2019-09-03 08:33:30 -05:00
|
|
|
|
|
|
|
|
LL | if let 0 | (1 | 2) = 0 {}
|
2021-09-09 09:22:24 -05:00
|
|
|
| ^ ^
|
|
|
|
|
|
|
|
|
help: remove these parentheses
|
|
|
|
|
|
|
|
|
LL - if let 0 | (1 | 2) = 0 {}
|
|
|
|
LL + if let 0 | 1 | 2 = 0 {}
|
2022-06-08 12:34:57 -05:00
|
|
|
|
|
2019-09-03 08:33:30 -05:00
|
|
|
|
|
|
|
error: unnecessary parentheses around pattern
|
2022-12-09 12:32:06 -06:00
|
|
|
--> $DIR/issue-54538-unused-parens-lint.rs:61:15
|
2019-09-03 08:33:30 -05:00
|
|
|
|
|
|
|
|
LL | if let TS((0 | 1)) = TS(0) {}
|
2021-09-09 09:22:24 -05:00
|
|
|
| ^ ^
|
|
|
|
|
|
|
|
|
help: remove these parentheses
|
|
|
|
|
|
|
|
|
LL - if let TS((0 | 1)) = TS(0) {}
|
|
|
|
LL + if let TS(0 | 1) = TS(0) {}
|
2022-06-08 12:34:57 -05:00
|
|
|
|
|
2019-09-03 08:33:30 -05:00
|
|
|
|
|
|
|
error: unnecessary parentheses around pattern
|
2022-12-09 12:32:06 -06:00
|
|
|
--> $DIR/issue-54538-unused-parens-lint.rs:63:20
|
2019-09-03 08:33:30 -05:00
|
|
|
|
|
|
|
|
LL | if let NS { f: (0 | 1) } = (NS { f: 0 }) {}
|
2021-09-09 09:22:24 -05:00
|
|
|
| ^ ^
|
|
|
|
|
|
|
|
|
help: remove these parentheses
|
|
|
|
|
|
|
|
|
LL - if let NS { f: (0 | 1) } = (NS { f: 0 }) {}
|
|
|
|
LL + if let NS { f: 0 | 1 } = (NS { f: 0 }) {}
|
2022-06-08 12:34:57 -05:00
|
|
|
|
|
2019-09-03 08:33:30 -05:00
|
|
|
|
|
|
|
error: unnecessary parentheses around pattern
|
2022-12-09 12:32:06 -06:00
|
|
|
--> $DIR/issue-54538-unused-parens-lint.rs:73:9
|
2019-09-03 08:33:30 -05:00
|
|
|
|
|
|
|
|
LL | (_) => {}
|
2021-09-09 09:22:24 -05:00
|
|
|
| ^ ^
|
|
|
|
|
|
|
|
|
help: remove these parentheses
|
|
|
|
|
|
|
|
|
LL - (_) => {}
|
|
|
|
LL + _ => {}
|
2022-06-08 12:34:57 -05:00
|
|
|
|
|
2019-09-03 08:33:30 -05:00
|
|
|
|
|
|
|
error: unnecessary parentheses around pattern
|
2022-12-09 12:32:06 -06:00
|
|
|
--> $DIR/issue-54538-unused-parens-lint.rs:74:9
|
2018-10-05 21:09:14 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | (y) => {}
|
2021-09-09 09:22:24 -05:00
|
|
|
| ^ ^
|
|
|
|
|
|
|
|
|
help: remove these parentheses
|
|
|
|
|
|
|
|
|
LL - (y) => {}
|
|
|
|
LL + y => {}
|
2022-06-08 12:34:57 -05:00
|
|
|
|
|
2018-10-05 21:09:14 -05:00
|
|
|
|
2019-09-03 08:33:30 -05:00
|
|
|
error: unnecessary parentheses around pattern
|
2022-12-09 12:32:06 -06:00
|
|
|
--> $DIR/issue-54538-unused-parens-lint.rs:75:9
|
2018-10-05 21:09:14 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | (ref r) => {}
|
2021-09-09 09:22:24 -05:00
|
|
|
| ^ ^
|
|
|
|
|
|
|
|
|
help: remove these parentheses
|
|
|
|
|
|
|
|
|
LL - (ref r) => {}
|
|
|
|
LL + ref r => {}
|
2022-06-08 12:34:57 -05:00
|
|
|
|
|
2018-10-05 21:09:14 -05:00
|
|
|
|
2019-09-03 08:33:30 -05:00
|
|
|
error: unnecessary parentheses around pattern
|
2022-12-09 12:32:06 -06:00
|
|
|
--> $DIR/issue-54538-unused-parens-lint.rs:76:9
|
2018-10-05 21:09:14 -05:00
|
|
|
|
|
2019-05-30 05:20:30 -05:00
|
|
|
LL | (e @ 1...2) => {}
|
2021-09-09 09:22:24 -05:00
|
|
|
| ^ ^
|
|
|
|
|
|
|
|
|
help: remove these parentheses
|
|
|
|
|
|
|
|
|
LL - (e @ 1...2) => {}
|
|
|
|
LL + e @ 1...2 => {}
|
2022-06-08 12:34:57 -05:00
|
|
|
|
|
2018-10-05 21:09:14 -05:00
|
|
|
|
2019-09-03 08:33:30 -05:00
|
|
|
error: unnecessary parentheses around pattern
|
2022-12-09 12:32:06 -06:00
|
|
|
--> $DIR/issue-54538-unused-parens-lint.rs:82:9
|
2018-10-05 21:09:14 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | (e @ &(1...2)) => {}
|
2021-09-09 09:22:24 -05:00
|
|
|
| ^ ^
|
|
|
|
|
|
|
|
|
help: remove these parentheses
|
|
|
|
|
|
|
|
|
LL - (e @ &(1...2)) => {}
|
|
|
|
LL + e @ &(1...2) => {}
|
2022-06-08 12:34:57 -05:00
|
|
|
|
|
2018-10-05 21:09:14 -05:00
|
|
|
|
2019-09-03 08:33:30 -05:00
|
|
|
error: unnecessary parentheses around pattern
|
2022-12-09 12:32:06 -06:00
|
|
|
--> $DIR/issue-54538-unused-parens-lint.rs:83:10
|
2019-05-30 05:20:30 -05:00
|
|
|
|
|
|
|
|
LL | &(_) => {}
|
2021-09-09 09:22:24 -05:00
|
|
|
| ^ ^
|
|
|
|
|
|
|
|
|
help: remove these parentheses
|
|
|
|
|
|
|
|
|
LL - &(_) => {}
|
|
|
|
LL + &_ => {}
|
2022-06-08 12:34:57 -05:00
|
|
|
|
|
2019-05-30 05:20:30 -05:00
|
|
|
|
2019-09-03 08:33:30 -05:00
|
|
|
error: unnecessary parentheses around pattern
|
2022-12-09 12:32:06 -06:00
|
|
|
--> $DIR/issue-54538-unused-parens-lint.rs:94:9
|
2019-05-30 05:20:30 -05:00
|
|
|
|
|
|
|
|
LL | (_) => {}
|
2021-09-09 09:22:24 -05:00
|
|
|
| ^ ^
|
|
|
|
|
|
|
|
|
help: remove these parentheses
|
|
|
|
|
|
|
|
|
LL - (_) => {}
|
|
|
|
LL + _ => {}
|
2022-06-08 12:34:57 -05:00
|
|
|
|
|
2019-05-30 05:20:30 -05:00
|
|
|
|
2019-09-03 08:33:30 -05:00
|
|
|
error: unnecessary parentheses around pattern
|
2022-12-09 12:32:06 -06:00
|
|
|
--> $DIR/issue-54538-unused-parens-lint.rs:95:9
|
2019-05-30 05:20:30 -05:00
|
|
|
|
|
|
|
|
LL | (y) => {}
|
2021-09-09 09:22:24 -05:00
|
|
|
| ^ ^
|
|
|
|
|
|
|
|
|
help: remove these parentheses
|
|
|
|
|
|
|
|
|
LL - (y) => {}
|
|
|
|
LL + y => {}
|
2022-06-08 12:34:57 -05:00
|
|
|
|
|
2019-05-30 05:20:30 -05:00
|
|
|
|
2019-09-03 08:33:30 -05:00
|
|
|
error: unnecessary parentheses around pattern
|
2022-12-09 12:32:06 -06:00
|
|
|
--> $DIR/issue-54538-unused-parens-lint.rs:96:9
|
2019-05-30 05:20:30 -05:00
|
|
|
|
|
|
|
|
LL | (ref r) => {}
|
2021-09-09 09:22:24 -05:00
|
|
|
| ^ ^
|
|
|
|
|
|
|
|
|
help: remove these parentheses
|
|
|
|
|
|
|
|
|
LL - (ref r) => {}
|
|
|
|
LL + ref r => {}
|
2022-06-08 12:34:57 -05:00
|
|
|
|
|
2019-05-30 05:20:30 -05:00
|
|
|
|
2019-09-03 08:33:30 -05:00
|
|
|
error: unnecessary parentheses around pattern
|
2022-12-09 12:32:06 -06:00
|
|
|
--> $DIR/issue-54538-unused-parens-lint.rs:97:9
|
2019-05-30 05:20:30 -05:00
|
|
|
|
|
|
|
|
LL | (e @ 1..=2) => {}
|
2021-09-09 09:22:24 -05:00
|
|
|
| ^ ^
|
|
|
|
|
|
|
|
|
help: remove these parentheses
|
|
|
|
|
|
|
|
|
LL - (e @ 1..=2) => {}
|
|
|
|
LL + e @ 1..=2 => {}
|
2022-06-08 12:34:57 -05:00
|
|
|
|
|
2019-05-30 05:20:30 -05:00
|
|
|
|
2019-09-03 08:33:30 -05:00
|
|
|
error: unnecessary parentheses around pattern
|
2022-12-09 12:32:06 -06:00
|
|
|
--> $DIR/issue-54538-unused-parens-lint.rs:103:9
|
2019-05-30 05:20:30 -05:00
|
|
|
|
|
|
|
|
LL | (e @ &(1..=2)) => {}
|
2021-09-09 09:22:24 -05:00
|
|
|
| ^ ^
|
|
|
|
|
|
|
|
|
help: remove these parentheses
|
|
|
|
|
|
|
|
|
LL - (e @ &(1..=2)) => {}
|
|
|
|
LL + e @ &(1..=2) => {}
|
2022-06-08 12:34:57 -05:00
|
|
|
|
|
2019-05-30 05:20:30 -05:00
|
|
|
|
2019-09-03 08:33:30 -05:00
|
|
|
error: unnecessary parentheses around pattern
|
2022-12-09 12:32:06 -06:00
|
|
|
--> $DIR/issue-54538-unused-parens-lint.rs:104:10
|
2018-10-05 21:09:14 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | &(_) => {}
|
2021-09-09 09:22:24 -05:00
|
|
|
| ^ ^
|
|
|
|
|
|
|
|
|
help: remove these parentheses
|
|
|
|
|
|
|
|
|
LL - &(_) => {}
|
|
|
|
LL + &_ => {}
|
2022-06-08 12:34:57 -05:00
|
|
|
|
|
2018-10-05 21:09:14 -05:00
|
|
|
|
2019-09-05 02:17:19 -05:00
|
|
|
error: aborting due to 24 previous errors
|
2019-09-03 08:33:30 -05:00
|
|
|
|