dbg_macro does not catch invocation inside macro #7274
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-negative
Issue: The lint should have been triggered on code, but wasn't
Lint name: dbg_macro
I tried this code:
I expected to see (by enabling
clippy::dbg_macro
) a full-throated rejection of thatdbg!(2)
macro invocation, something like:... like I do get for the
dbg!(1);
invocation if I uncomment that.Instead, I get no clippy warnings/errors.
Meta
cargo clippy -V
: clippy 0.1.52 (9bc8c42b 2021-05-09)rustc -Vv
:The text was updated successfully, but these errors were encountered: