Uh oh!
There was an error while loading. Please reload this page.
Make tcx.visibility() work for items in the local crate - #77889
Conversation
The important commit is 3a88f79, the first one just switches lots of places from I don't know how to handle these. |
petrochenkov
commented
Oct 13, 2020
@jyn514 Touching |
tcx.visibility() work for items in the local cratetcx.visibility() work for items in the local cratejyn514
commented
Oct 15, 2020
I think I did it right this time :) It passes |
This also changes rustc_metadata to use `tcx.visibility()` for `record!`ing metadata.
jyn514
commented
Oct 15, 2020
Let me know if I should switch more places to using |
petrochenkov
commented
Oct 17, 2020
So I ended up fixing this properly and deduplicating visibility calculations in all three places in which they are performed - resolve (which can't use queries), metadata encoding, and privacy. I'm still debugging, but if I finish that work today or at least tomorrow, I'll close this PR in favor of it. |
petrochenkov
commented
Oct 18, 2020
Closing in favor of #78077. |
This also changes rustc_metadata to use
tcx.visibility()forrecord!ing metadata.See #77820 (comment) for the history.
r? @petrochenkov