Skip to content

"Unused imports" warning has false-positives in the presence of syntax extensions #6371

Closed
@catamorphism

Description

@catamorphism

For example, code with deriving(IterBytes) seems to need a use core; in scope. however, this causes a warning: unused import. Removing the import causes a resolve error, though.

Or maybe the answer is for syntax extensions to not require a certain module to be in scope... I'm not sure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.A-resolveArea: Name/path resolution done by `rustc_resolve` specificallyA-syntaxextArea: Syntax extensions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions