Skip to content

non-line mod without path attribute false positive #36772

Closed
@matklad

Description

@matklad

This code

fn main() {
    #[path="foo"]
    mod foo {
        mod bar;
    }
}

Fails to compile because there is no path on the bar, however I think it should work because there is a path on the foo. That is, the following is valid and will look for foo/bar.rs:

fn main() {}

#[path="foo"]
mod foo {
    mod bar;
}

cc @jseyfried d21e908

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