Skip to content

should report unused_import when it reexports nothing #116032

Closed
@bvanjoi

Description

@bvanjoi

Code

mod a {}

pub use a::*;

fn main() {}

Current output

nothing

Desired output

unused import: `a::*`

Rationale and extra context

No response

Other cases

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions