-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Internal lint: warn on public cross-crate re-exports #77479
Conversation
Example output: ``` warning: publicly re-exporting an item --> compiler/rustc_typeck/src/expr_use_visitor.rs:8:36 | 8 | pub use rustc_middle::hir::place::{PlaceBase, PlaceWithHirId, Projection}; | ^^^^^^^^^ ```
r? @lcnr (rust_highfive has picked a reviewer for you, use r? to override) |
(working on getting a full list of all the warnings, will post it when |
The end goal here is to make #65031 more manageable to work on. Eventually I want to move out |
All warnings
|
Hmm, the warnings for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r=me on the implementation, think we need some T-compiler consensus here though
I opened rust-lang/compiler-team#368. |
Closing for the same reason as rust-lang/compiler-team#368. |
Addresses #65233. I haven't yet addressed any of the warnings, but I'm opening this to make sure T-compiler is still interested in doing this. If so I'll remove most of the re-exports and replace any usages with the original path.
Example output: