Skip to content

edition 2018 support for mod #[path=] attribute #59345

Open
@burrbull

Description

@burrbull

If module files have edition 2018 style file structure and try to import one of them by path attribute:

#[path=modname.rs] 
mod modname;

compiler tries to find submodules in submodname.rs or submodname/mod.rs, but not in
modname/submodname.rs where it is really located.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-resolveArea: Name/path resolution done by `rustc_resolve` specificallyC-feature-requestCategory: A feature request, i.e: not implemented / a PR.T-langRelevant to the language 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