Skip to content

Resolve external preludes for modules inside blocks #17057

Closed
@roife

Description

@roife

The original issue was closed by the bot 😅, but we need to resolve this problem.

          Looks like we fail to resolve the extern prelude in local modules in block modules, it works fine if the `mod cs` is at the top-level (not nested inside a function or anything)
fn main() {
    mod f {
        use core as _;
    }
}
          here `core` does not resolve

Originally posted in #17032 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-nameresname, path and module resolutionC-bugCategory: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions