Skip to content

Commit 9c39115

Browse files
committed
Ignore buggy nonstandard_macro_braces clippy lint
Clippy bug: rust-lang/rust-clippy#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)
1 parent 89342af commit 9c39115

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

test_suite/tests/test_annotations.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#![allow(
22
clippy::cast_lossless,
33
clippy::from_over_into,
4+
// Clippy bug: https://github.com/rust-lang/rust-clippy/issues/7422
5+
clippy::nonstandard_macro_braces,
46
clippy::trivially_copy_pass_by_ref
57
)]
68

test_suite/tests/test_gen.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
#![allow(
77
unknown_lints,
88
mixed_script_confusables,
9+
// Clippy bug: https://github.com/rust-lang/rust-clippy/issues/7422
10+
clippy::nonstandard_macro_braces,
911
clippy::ptr_arg,
1012
clippy::trivially_copy_pass_by_ref
1113
)]

0 commit comments

Comments
 (0)