about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/nrvo.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-08-28 09:39:59 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2024-09-09 08:48:09 +1000
commit6af470e360b775a9079bd0e6634488d7a1936290 (patch)
tree8c3ada2805a425afa8f6a8aed6663665ce995098 /compiler/rustc_mir_transform/src/nrvo.rs
parentadf8d168af9334a8bf940824fcf4207d01e05ae5 (diff)
downloadrust-6af470e360b775a9079bd0e6634488d7a1936290.tar.gz
rust-6af470e360b775a9079bd0e6634488d7a1936290.zip
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.
Diffstat (limited to 'compiler/rustc_mir_transform/src/nrvo.rs')
-rw-r--r--compiler/rustc_mir_transform/src/nrvo.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_mir_transform/src/nrvo.rs b/compiler/rustc_mir_transform/src/nrvo.rs
index 94573a9d89b..98fa149e2bc 100644
--- a/compiler/rustc_mir_transform/src/nrvo.rs
+++ b/compiler/rustc_mir_transform/src/nrvo.rs
@@ -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 {