Skip to content

[Rust 2018] pub use some_crate as some_name breaks glob imports #52141

Closed
@CryZe

Description

@CryZe

Let's say lib.rs contains:

pub use some_crate as some_name;

in order to make a crate available as a different name, using a glob import in the same crate (but other file) as such:

use crate::some_name::*;

doesn't actually import anything into scope, while using explicit imports or pub extern crate some_crate as some_name; instead works. This is possibly related to #52140

Metadata

Metadata

Assignees

Labels

A-edition-2018Area: The 2018 editionC-bugCategory: This is a bug.F-rust_2018_preview`#![feature(rust_2018_preview)]`P-highHigh priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions