Skip to content

Improve name resolution failure detection #32119

Closed
@jseyfried

Description

@jseyfried

Right now, this compiles ...

pub type T = ();

mod foo {
    pub use super::T;
}

mod bar {
    pub use super::*; // ... but replacing `*` with `T` causes unresolved imports.
}

pub use foo::*;
pub use bar::*;

Neither case compiled before #31726, when even this would not compile:

pub type T = ();
mod foo {
    pub use super::T;
}

pub use foo::*;

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions