Skip to content

wildcard_imports's allowed-wildcard-imports with several path segments #15246

@ojeda

Description

@ojeda

Description

wildcard_imports's allowed-wildcard-imports is currently a list of path segments, but one cannot match more than one path segment in the same path. In turn, that means one may need to allow more than needed.

For instance, a project may want to allow error::code::*, but not everything with error or code in the name:

allowed-wildcard-imports = [
    "error::code",
]

Version


Additional Labels

@rustbot label +C-enhancement

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: Enhancement of lints, like adding more cases or adding help messages

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions