False positive with match_on_same_arms and macros #1390
Labels
C-an-interesting-project
Category: Interesting projects, that usually are more involved design/code wise.
C-bug
Category: Clippy is not doing the correct thing
E-hard
Call for participation: This a hard problem and requires more experience or effort to work on
I-false-positive
Issue: The lint was triggered on code it shouldn't have
T-middle
Type: Probably requires verifiying types
Hi,
I have a trace macro which normally expands to nothing, but can be turned on by a Cargo feature. I get
match_same_arms
warning on a case like this:which gives the following warning:
In some sense they expand to the same, but they're not the same to me the programmer; when I turn on a feature the tracing becomes more useful.
Playground link: https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=929ad50b7c6d82e2df6bf3a8cbd7a944
The text was updated successfully, but these errors were encountered: