Reduce visibilities, and add warn(unreachable_pub)
.
Lots of unnecessary `pub`s in this crate. Most are downgraded to `pub(super)`, though some don't need any visibility.
This commit is contained in:
parent
adf8d168af
commit
6af470e360
65 changed files with 125 additions and 120 deletions
|
@ -30,7 +30,7 @@ use tracing::{debug, trace};
|
|||
///
|
||||
/// [#47954]: https://github.com/rust-lang/rust/pull/47954
|
||||
/// [#71003]: https://github.com/rust-lang/rust/pull/71003
|
||||
pub struct RenameReturnPlace;
|
||||
pub(super) struct RenameReturnPlace;
|
||||
|
||||
impl<'tcx> crate::MirPass<'tcx> for RenameReturnPlace {
|
||||
fn is_enabled(&self, sess: &rustc_session::Session) -> bool {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue