Skip to content

Forbid modules from having the same name as any of their ancestors #11037

Closed
@bstrie

Description

@bstrie

Our name resolution rules are already impossible to understand, and this just makes things worse, especially with the opaque crate-relative-imports rule. This change would make a module named foo::foo illegal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions