Closed asomers closed 7 months ago
It seems more a bug in clippy. As far I can understand seems they designed this check to handle duplication in #[allow(...)]
attributes, but this approach doesn't work in general.
I don't think I can find a way to work around this annoying thing.
Seams an open problem in clippy https://github.com/rust-lang/rust-clippy/issues/12537
Tested against clippy 0.1.79 (7f2fc33 2024-04-22)
that didn't report any error.
With the latest Rust compiler, Clippy reports duplicated_attributes warnings from any rstest test function that has two Option arguments, if there is a test case that sets at least one of those arguments to
None
.Reproduction Example
Compiler output:
Compiler version