Skip to content

Importing a nonexistent item does not cause compilation to fail #2937

Closed
@bstrie

Description

@bstrie

Here's the test case from #2123. It used to just crash with a poor error message, but now it doesn't fail at all despite the lack of anything named m::f.

import x = m::f;

mod m {
}

fn main() {
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-resolveArea: Name/path resolution done by `rustc_resolve` specifically

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions