Closed
Description
The latest beta contains a new? lunused_parens
lint that triggers on macro by example code. This does not necessarily make sense because macros could be used to construct nearly arbitrary custom syntax for example something requiring to wrap a single element into a parenthesis.
The strange thing here is that seems to only happen on beta, not on nightly, not on current stable.
Found via the diesel CI
Error message:
--> diesel/src/macros/mod.rs:274:27
|
274 | primary_key = (id),
| ^^^^ help: remove these parentheses
… | ^^^^ help: remove these parentheses
...
1085 | / table! {
1086 | | use sql_types::*;
1087 | | use macros::tests::my_types::*;
1088 | |
... |
1092 | | }
1093 | | }
| |_____- in this macro invocation
rustc version: rustc 1.40.0-beta.1 (76b40532a 2019-11-05)