-Zdefault-hidden-visibility
rustc
The new flag has been described in the Major Change Proposal at https://github.com/rust-lang/compiler-team/issues/656