Skip to content

"A non-empty glob must import something with the glob's visibility" regression from stable/beta to nightly? #37995

Closed
@utkarshkukreti

Description

@utkarshkukreti

The following program compiles on:

  • rustc 1.13.0 (2c6933a 2016-11-07)
  • rustc 1.14.0-beta.2 (e627a2e 2016-11-16)

but does not compile on:

  • rustc 1.15.0-nightly (3bf2be9 2016-11-22)
mod foo {
  mod bar {
    pub use super::*;
  }
}

fn main() {}

Error:

rustc 1.15.0-nightly (3bf2be9ce 2016-11-22)
error: A non-empty glob must import something with the glob's visibility
 --> <anon>:3:13
  |
3 |     pub use super::*;
  |             ^^^^^^^^^

error: aborting due to previous error

Tested both locally and on https://play.rust-lang.org/.

I could not find any mention of this here or here.

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