Skip to content

Improve name resolution failure detection #32119

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::*;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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