Skip to content

use_self lint fires on code expanded from a macro #4887

Closed
@Lokathor

Description

@Lokathor

When using a macro that expands to a particular fixed type, if you happen to use that macro in a context where Self could have been used the use_self lint will trigger and tell you to fix the macro.

Any way to make it not trigger on macro expansions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: Clippy is not doing the correct thingE-mediumCall for participation: Medium difficulty level problem and requires some initial experience.I-false-positiveIssue: The lint was triggered on code it shouldn't haveT-macrosType: Issues with macros and macro expansiongood first issueThese issues are a good way to get started with Clippy

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions