11error: unnecessary parentheses
2-   --> tests/ui/double_parens.rs:15 :5
2+   --> tests/ui/double_parens.rs:20 :5
33   |
44LL |     ((0))
55   |     ^^^^^ help: remove them: `(0)`
@@ -8,37 +8,37 @@ LL |     ((0))
88   = help: to override `-D warnings` add `#[allow(clippy::double_parens)]`
99
1010error: unnecessary parentheses
11-   --> tests/ui/double_parens.rs:20 :14
11+   --> tests/ui/double_parens.rs:25 :14
1212   |
1313LL |     dummy_fn((0));
1414   |              ^^^ help: remove them: `0`
1515
1616error: unnecessary parentheses
17-   --> tests/ui/double_parens.rs:25 :20
17+   --> tests/ui/double_parens.rs:30 :20
1818   |
1919LL |     x.dummy_method((0));
2020   |                    ^^^ help: remove them: `0`
2121
2222error: unnecessary parentheses
23-   --> tests/ui/double_parens.rs:30 :5
23+   --> tests/ui/double_parens.rs:35 :5
2424   |
2525LL |     ((1, 2))
2626   |     ^^^^^^^^ help: remove them: `(1, 2)`
2727
2828error: unnecessary parentheses
29-   --> tests/ui/double_parens.rs:36 :5
29+   --> tests/ui/double_parens.rs:41 :5
3030   |
3131LL |     (())
3232   |     ^^^^ help: remove them: `()`
3333
3434error: unnecessary parentheses
35-   --> tests/ui/double_parens.rs:59 :16
35+   --> tests/ui/double_parens.rs:64 :16
3636   |
3737LL |     assert_eq!(((1, 2)), (1, 2), "Error");
3838   |                ^^^^^^^^ help: remove them: `(1, 2)`
3939
4040error: unnecessary parentheses
41-   --> tests/ui/double_parens.rs:84 :16
41+   --> tests/ui/double_parens.rs:89 :16
4242   |
4343LL |         () => {((100))}
4444   |                ^^^^^^^ help: remove them: `(100)`
@@ -49,22 +49,55 @@ LL |     bar!();
4949   = note: this error originates in the macro `bar` (in Nightly builds, run with -Z macro-backtrace for more info)
5050
5151error: unnecessary parentheses
52-   --> tests/ui/double_parens.rs:91 :5
52+   --> tests/ui/double_parens.rs:96 :5
5353   |
5454LL |     ((vec![1, 2]));
5555   |     ^^^^^^^^^^^^^^ help: remove them: `(vec![1, 2])`
5656
5757error: unnecessary parentheses
58-   --> tests/ui/double_parens.rs:93 :14
58+   --> tests/ui/double_parens.rs:98 :14
5959   |
6060LL |     dummy_fn((vec![1, 2]));
6161   |              ^^^^^^^^^^^^ help: remove them: `vec![1, 2]`
6262
6363error: unnecessary parentheses
64-   --> tests/ui/double_parens.rs:95 :20
64+   --> tests/ui/double_parens.rs:100 :20
6565   |
6666LL |     x.dummy_method((vec![1, 2]));
6767   |                    ^^^^^^^^^^^^ help: remove them: `vec![1, 2]`
6868
69- error: aborting due to 10 previous errors
69+ error: unnecessary parentheses
70+   --> tests/ui/double_parens.rs:110:21
71+    |
72+ LL |             let a = (());
73+    |                     ^^^^ help: remove them: `()`
74+ ...
75+ LL |         pub const E: InterruptMask = double_parens!((Self::OE), Self::BE, Self::PE, Self::FE);
76+    |                                      -------------------------------------------------------- in this macro invocation
77+    |
78+    = note: this error originates in the macro `double_parens` (in Nightly builds, run with -Z macro-backtrace for more info)
79+ 
80+ error: unnecessary parentheses
81+   --> tests/ui/double_parens.rs:112:21
82+    |
83+ LL |             let b = ((5));
84+    |                     ^^^^^ help: remove them: `(5)`
85+ ...
86+ LL |         pub const E: InterruptMask = double_parens!((Self::OE), Self::BE, Self::PE, Self::FE);
87+    |                                      -------------------------------------------------------- in this macro invocation
88+    |
89+    = note: this error originates in the macro `double_parens` (in Nightly builds, run with -Z macro-backtrace for more info)
90+ 
91+ error: unnecessary parentheses
92+   --> tests/ui/double_parens.rs:114:44
93+    |
94+ LL |             let c = std::convert::identity((5));
95+    |                                            ^^^ help: remove them: `5`
96+ ...
97+ LL |         pub const E: InterruptMask = double_parens!((Self::OE), Self::BE, Self::PE, Self::FE);
98+    |                                      -------------------------------------------------------- in this macro invocation
99+    |
100+    = note: this error originates in the macro `double_parens` (in Nightly builds, run with -Z macro-backtrace for more info)
101+ 
102+ error: aborting due to 13 previous errors
70103
0 commit comments