From 9c39115f827170f7adbdfa4115f5916c5979393c Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Fri, 2 Jul 2021 20:57:57 -0700 Subject: [PATCH] Ignore buggy nonstandard_macro_braces clippy lint Clippy bug: https://github.com/rust-lang/rust-clippy/issues/7422 error: use of irregular braces for `format_args!` macro --> test_suite/tests/test_gen.rs:528:25 | 528 | #[derive(Serialize, Deserialize)] | ^^^^^^^^^^^ | = note: `-D clippy::nonstandard-macro-braces` implied by `-D clippy::all` help: consider writing `Deserialize` --> test_suite/tests/test_gen.rs:528:25 | 528 | #[derive(Serialize, Deserialize)] | ^^^^^^^^^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonstandard_macro_braces = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) error: use of irregular braces for `format_args!` macro --> test_suite/tests/test_annotations.rs:1791:43 | 1791 | #[derive(Debug, PartialEq, Serialize, Deserialize)] | ^^^^^^^^^^^ | = note: `-D clippy::nonstandard-macro-braces` implied by `-D clippy::all` help: consider writing `Deserialize` --> test_suite/tests/test_annotations.rs:1791:43 | 1791 | #[derive(Debug, PartialEq, Serialize, Deserialize)] | ^^^^^^^^^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonstandard_macro_braces = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) --- test_suite/tests/test_annotations.rs | 2 ++ test_suite/tests/test_gen.rs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/test_suite/tests/test_annotations.rs b/test_suite/tests/test_annotations.rs index 9e62e0a3..db4c58f1 100644 --- a/test_suite/tests/test_annotations.rs +++ b/test_suite/tests/test_annotations.rs @@ -1,6 +1,8 @@ #![allow( clippy::cast_lossless, clippy::from_over_into, + // Clippy bug: https://github.com/rust-lang/rust-clippy/issues/7422 + clippy::nonstandard_macro_braces, clippy::trivially_copy_pass_by_ref )] diff --git a/test_suite/tests/test_gen.rs b/test_suite/tests/test_gen.rs index bea97f1b..f0a7fe1b 100644 --- a/test_suite/tests/test_gen.rs +++ b/test_suite/tests/test_gen.rs @@ -6,6 +6,8 @@ #![allow( unknown_lints, mixed_script_confusables, + // Clippy bug: https://github.com/rust-lang/rust-clippy/issues/7422 + clippy::nonstandard_macro_braces, clippy::ptr_arg, clippy::trivially_copy_pass_by_ref )]