|
| 1 | +warning: unnecessary parentheses around function argument |
| 2 | + --> $DIR/try-block-unused-delims.rs:10:13 |
| 3 | + | |
| 4 | +LL | consume((try {})); |
| 5 | + | ^^^^^^^^ help: remove these parentheses |
| 6 | + | |
| 7 | +note: the lint level is defined here |
| 8 | + --> $DIR/try-block-unused-delims.rs:5:9 |
| 9 | + | |
| 10 | +LL | #![warn(unused_parens, unused_braces)] |
| 11 | + | ^^^^^^^^^^^^^ |
| 12 | + |
| 13 | +warning: unnecessary braces around function argument |
| 14 | + --> $DIR/try-block-unused-delims.rs:13:13 |
| 15 | + | |
| 16 | +LL | consume({ try {} }); |
| 17 | + | ^^^^^^^^^^ help: remove these braces |
| 18 | + | |
| 19 | +note: the lint level is defined here |
| 20 | + --> $DIR/try-block-unused-delims.rs:5:24 |
| 21 | + | |
| 22 | +LL | #![warn(unused_parens, unused_braces)] |
| 23 | + | ^^^^^^^^^^^^^ |
| 24 | + |
| 25 | +warning: unnecessary parentheses around `match` scrutinee expression |
| 26 | + --> $DIR/try-block-unused-delims.rs:16:11 |
| 27 | + | |
| 28 | +LL | match (try {}) { |
| 29 | + | ^^^^^^^^ help: remove these parentheses |
| 30 | + |
| 31 | +warning: unnecessary parentheses around `let` scrutinee expression |
| 32 | + --> $DIR/try-block-unused-delims.rs:21:22 |
| 33 | + | |
| 34 | +LL | if let Err(()) = (try {}) {} |
| 35 | + | ^^^^^^^^ help: remove these parentheses |
| 36 | + |
| 37 | +warning: unnecessary parentheses around `match` scrutinee expression |
| 38 | + --> $DIR/try-block-unused-delims.rs:24:11 |
| 39 | + | |
| 40 | +LL | match (try {}) { |
| 41 | + | ^^^^^^^^ help: remove these parentheses |
| 42 | + |
| 43 | +warning: 5 warnings emitted |
| 44 | + |
0 commit comments