Uh oh!
There was an error while loading. Please reload this page.
resolve: fix the visibility of extern crates - #31362
Conversation
eb4e401 to
794df1dComparejseyfried
commented
Feb 2, 2016
petrochenkov
commented
Feb 2, 2016
It doesn't necessarily have to be a hard error immediately, you can mark such reexports with |
9d5ef32 to
9f6dd8eComparejseyfried
commented
Feb 2, 2016
@petrochenkov Good point, I added another commit making it a warning. |
cce80e7 to
2168764Comparenrc
commented
Feb 3, 2016
cc @rust-lang/lang |
There was a problem hiding this comment.
can you move the consider... bit to a note please
nrc
commented
Feb 3, 2016
The PR lgtm. I'll wait for a crater run and for the lang team to see this before giving r+ though. |
aturon
commented
Feb 3, 2016
Seems to match our previous decision on this question, so LGTM as well. |
There was a problem hiding this comment.
Is pub extern crate very buggy? I think it can be used here instead of suppressing the warning. It will report the "pub extern crate does not work as expected" warning during stage0, but that's ok.
There was a problem hiding this comment.
Good point, for some reason I thought that the warnings weren't ok.pub extern crate works fine except that it is not visible to other crates (before this PR).
bors
commented
Feb 5, 2016
☔ The latest upstream changes (presumably #31386) made this pull request unmergeable. Please resolve the merge conflicts. |
73e8496 to
f722e31Comparejseyfried
commented
Feb 6, 2016
This also closes #22146. |
f722e31 to
44d605cComparebors
commented
Feb 11, 2016
☔ The latest upstream changes (presumably #31461) made this pull request unmergeable. Please resolve the merge conflicts. |
ea0b0d5 to
3acbd2fComparebors
commented
Feb 11, 2016
☔ The latest upstream changes (presumably #31487) made this pull request unmergeable. Please resolve the merge conflicts. |
nrc
commented
Feb 11, 2016
@brson or @alexcrichton could we get a crater run for this PR please? |
bors
commented
Feb 25, 2016
⌛ Testing commit 7ad7065 with merge f06ff1a... |
…ty, r=nikomatsakis This PR changes the visibility of extern crate declarations to match that of items (fixesrust-lang#26775). To avoid breakage, the PR makes it a `public_in_private` lint to reexport a private extern crate, and it adds the lint `inaccessible_extern_crate` for uses of an inaccessible extern crate. The lints can be avoided by making the appropriate `extern crate` declaration public.
bors
commented
Feb 25, 2016
⌛ Testing commit 7ad7065 with merge 4a01bac... |
bors
commented
Feb 25, 2016
💔 Test failed - auto-linux-64-nopt-t |
alexcrichton
commented
Feb 25, 2016
@bors: retry On Thu, Feb 25, 2016 at 12:28 AM, bors notifications@github.com wrote:
|
This PR changes the visibility of extern crate declarations to match that of items (fixes#26775).
To avoid breakage, the PR makes it a
public_in_privatelint to reexport a private extern crate, and it adds the lintinaccessible_extern_cratefor uses of an inaccessible extern crate.The lints can be avoided by making the appropriate
extern cratedeclaration public.