fix: Calculate the privacy of dependencies wrt current local crate#137441
fix: Calculate the privacy of dependencies wrt current local crate#137441ShoyuVanilla wants to merge 1 commit intorust-lang:masterfrom
Conversation
|
r? @fee1-dead rustbot has assigned @fee1-dead. Use |
| @@ -1,7 +1,6 @@ | |||
| //@ aux-crate:priv:shared=shared.rs | |||
| //@ aux-crate:reexport=reexport.rs | |||
| //@ aux-crate:priv:reexport=reexport.rs | |||
There was a problem hiding this comment.
According to the diagram commented below, I think that this is the original intention of this test
|
☔ The latest upstream changes (presumably #137446) made this pull request unmergeable. Please resolve the merge conflicts. |
|
Oh, this overlaps a bit with #135501. I'll resolve the conflicts. |
79c63fb to
a34b7fd
Compare
|
Well, the test case I've edited in this PR also works in #135501 and the extra complexities in this PR is not justfied so far - at the moment I was working on this PR, #135501 wasn't merged yet and tihs was solving more of the cases 😅 - closing for now and will revisit this for fixing #119428 entirely. |
|
Ah, sorry for racing!
Do you mean |
That one has been open for a while so you can just |
It's not really a race—your PR was already open when I started working on this, and I just wasn’t aware of it. 😅 And yes, |
Partially mitigates #119428
This PR addresses most aspects of the issue, except for the following cases:
For example, consider the following cases:
rust/tests/ui/privacy/pub-priv-dep/shared_direct_private.rs
Lines 26 to 33 in 15469f8
rust/tests/ui/privacy/pub-priv-dep/diamond_deps.rs
Lines 32 to 33 in 15469f8
Resolving the remaining issue likely requires modifying the path lowering logic. I plan to work on that in a follow-up PR—assuming, of course, that this one gets merged first! 😅
P.S. I'd also appreciate a review on #134176 😊