Skip to content

Reintroduce directory modules #4116

Closed
Closed
@brson

Description

@brson

As part of #2176 I removed directory modules from the language. As a result, crates make heavy use of #[path] to create directory structure.

We probably do want to have some directory convention that rustc understands.

Here's one idea: the mod foo; statement continues to be the only way to load external modules. The parser looks for foo.rs and foo/mod.rs. If either exists then it loads it, otherwise error.

This assumes that we like the mod.rs convention. I haven't decided yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions