macro_metavars_in_unsafe
does not lint "without a statement".
#13219
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
Summary
The current existing tests all have statements.
Lint Name
macro_metavars_in_unsafe
Reproducer
I tried this code:
I expected to see this happen: Lint emitted.
Instead, this happened: No lint emitted.
However, this will correctly lint:
This will correctly lint as well:
But if we remove the semicolon, it will again incorrectly not lint:
Version
Reproduced with Rust 1.80.0 and nightly (
rustc 1.82.0-nightly (64ebd39da 2024-08-03)
).Cc: @y21
The text was updated successfully, but these errors were encountered: