]> git.lizzy.rs Git - rust.git/commit
Auto merge of #30866 - jseyfried:fix_shadowed_use_visibility, r=nrc
authorbors <bors@rust-lang.org>
Mon, 1 Feb 2016 04:52:12 +0000 (04:52 +0000)
committerbors <bors@rust-lang.org>
Mon, 1 Feb 2016 04:52:12 +0000 (04:52 +0000)
commit654f68dd50b72d1d812b0760f1b71d7c366f6f55
treed07cc489e252e70593b48ff64f511443ec7e8209
parent094c5b0d61a0fb19a1cb94dddd6f59a975089b4b
parent7a69ee0c4806d30bbda5cc0277f3d0f38c3266c8
Auto merge of #30866 - jseyfried:fix_shadowed_use_visibility, r=nrc

This reverts PR #30324, fixing bug #30159 in which a public a glob import makes public any preceding imports that share a name with an item in the module being glob imported from.

For example,
```rust
pub fn f() {}
pub mod foo {
    fn f() {}
}

mod bar {
    use f;
    use f as g;
    pub use foo::*; // This makes the first import public but does not affect the second import.
}
```

This is a [breaking-change].