Skip to content

resolve: Finish fixing #30159, a bug in import visibility - #30866

Merged
bors merged 1 commit into
rust-lang:masterfrom
jseyfried:fix_shadowed_use_visibility
Feb 1, 2016
Merged

resolve: Finish fixing #30159, a bug in import visibility#30866
bors merged 1 commit into
rust-lang:masterfrom
jseyfried:fix_shadowed_use_visibility

Conversation

@jseyfried

Copy link
Copy Markdown
Contributor

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,

pubfnf(){}pubmod foo {fnf(){}}mod bar {use f;use f as g;pubuse foo::*;// This makes the first import public but does not affect the second import.}

This is a [breaking-change].

@jseyfried

Copy link
Copy Markdown
ContributorAuthor

r? @nrc
As discussed in #30324, this probably needs a crater run.

@nrc

nrc commented Jan 13, 2016

Copy link
Copy Markdown
Member

r+, so long as crater says nice things

@brson could you crater this please?

@blussbluss added the S-waiting-on-crater Status: Waiting on a crater run to be completed. label Jan 13, 2016
@alexcrichton

Copy link
Copy Markdown
Member

Starting a crater run

@alexcrichton

Copy link
Copy Markdown
Member

Crater reports no regressions, but there are 544 unknown crates so it may not be super high fidelity (cc @brson)

@jseyfried

Copy link
Copy Markdown
ContributorAuthor

What is the status of this PR?
cc @nrc@brson

@bors

bors commented Jan 30, 2016

Copy link
Copy Markdown
Collaborator

☔ The latest upstream changes (presumably #30843) made this pull request unmergeable. Please resolve the merge conflicts.

@jseyfried
jseyfriedforce-pushed the fix_shadowed_use_visibility branch from 22ac9df to 7a69ee0CompareJanuary 31, 2016 02:25
@jseyfried

Copy link
Copy Markdown
ContributorAuthor

rebased

@nrc

nrc commented Feb 1, 2016

Copy link
Copy Markdown
Member

@bors: r+

@bors

bors commented Feb 1, 2016

Copy link
Copy Markdown
Collaborator

📌 Commit 7a69ee0 has been approved by nrc

@nrcnrc removed the S-waiting-on-crater Status: Waiting on a crater run to be completed. label Feb 1, 2016
@nrc

nrc commented Feb 1, 2016

Copy link
Copy Markdown
Member

@jseyfried sorry, I lost track of this one

@jseyfried

Copy link
Copy Markdown
ContributorAuthor

No problem

bors added a commit that referenced this pull request Feb 1, 2016
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].
@bors

bors commented Feb 1, 2016

Copy link
Copy Markdown
Collaborator

⌛ Testing commit 7a69ee0 with merge 654f68d...

@bors
bors merged commit 7a69ee0 into rust-lang:masterFeb 1, 2016
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@jseyfried@nrc@alexcrichton@bors@bluss