diff --git a/src/librustdoc/html/format.rs b/src/librustdoc/html/format.rs
index b4aba2993c7fd..54c0cd2ef7fcb 100644
--- a/src/librustdoc/html/format.rs
+++ b/src/librustdoc/html/format.rs
@@ -1459,7 +1459,7 @@ impl clean::FnDecl {
Ok(())
}
- pub(crate) fn print_output<'a, 'tcx: 'a>(
+ fn print_output<'a, 'tcx: 'a>(
&'a self,
cx: &'a Context<'tcx>,
) -> impl fmt::Display + 'a + Captures<'tcx> {