Skip to content

ignored-unit-patterns shouldn't look inside macro invocations #11601

Closed
@mpalmer

Description

@mpalmer

Summary

I'm getting CI failures on a project that uses Deku because it trips the ignored-unit-patterns lint inside the DekuRead and DekuWrite derive macros (such as in this run). It doesn't seem useful for this lint to fire on code I can't control.

Lint Name

ignored-unit-patterns

Reproducer

No response

Version

rustc 1.75.0-nightly (2e5a9dd6c 2023-10-02)
binary: rustc
commit-hash: 2e5a9dd6c9eaa42f0684b4b760bd68fc27cbe51b
commit-date: 2023-10-02
host: x86_64-unknown-linux-gnu
release: 1.75.0-nightly
LLVM version: 17.0.2

Additional Labels

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: Clippy is not doing the correct thingI-false-positiveIssue: The lint was triggered on code it shouldn't have

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions