Pre-RFC: `pub(api)` visibility, and static enforcement of crate-internal API boundaries
Rust Internals [Unofficial]
April 20, 2026
For reference, here’s the issue I’m thinking of: Suggestion: Split unreachable_pub lint into multiple lints · Issue #112615 · rust-lang/rust · GitHub
I pretty much agree with @jplatte w.r.t. why I use the lint.
(The lint no longer triggers on public fields of private types, unless I’m sorely mistaken, but it still triggers on public methods of private types.)
Discussion in the ATmosphere