about summary refs log tree commit diff
path: root/src/librustdoc/formats/renderer.rs
diff options
context:
space:
mode:
authorJoshua Nelson <jyn514@gmail.com>2020-11-14 17:59:58 -0500
committerJoshua Nelson <jyn514@gmail.com>2020-11-15 11:21:12 -0500
commitd6c16e425338692d62bc1332c1e72ae2a9cde234 (patch)
tree40a7d4ff465d3799cfee802c8830134438da9337 /src/librustdoc/formats/renderer.rs
parent5fab31e5ddf5f2613bf57a0a7286dc6f5887e1cb (diff)
downloadrust-d6c16e425338692d62bc1332c1e72ae2a9cde234.tar.gz
rust-d6c16e425338692d62bc1332c1e72ae2a9cde234.zip
Make all rustdoc functions and structs crate-private
This gives warnings about dead code.
Diffstat (limited to 'src/librustdoc/formats/renderer.rs')
-rw-r--r--src/librustdoc/formats/renderer.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustdoc/formats/renderer.rs b/src/librustdoc/formats/renderer.rs
index 273e2819257..d0fdc69cc19 100644
--- a/src/librustdoc/formats/renderer.rs
+++ b/src/librustdoc/formats/renderer.rs
@@ -10,7 +10,7 @@ use crate::formats::cache::{Cache, CACHE_KEY};
 /// Allows for different backends to rustdoc to be used with the `run_format()` function. Each
 /// backend renderer has hooks for initialization, documenting an item, entering and exiting a
 /// module, and cleanup/finalizing output.
-pub trait FormatRenderer: Clone {
+crate trait FormatRenderer: Clone {
     /// Sets up any state required for the renderer. When this is called the cache has already been
     /// populated.
     fn init(
@@ -43,7 +43,7 @@ pub trait FormatRenderer: Clone {
 }
 
 /// Main method for rendering a crate.
-pub fn run_format<T: FormatRenderer>(
+crate fn run_format<T: FormatRenderer>(
     krate: clean::Crate,
     options: RenderOptions,
     render_info: RenderInfo,