1
Fork 0

Make all rustdoc functions and structs crate-private

This gives warnings about dead code.
This commit is contained in:
Joshua Nelson 2020-11-14 17:59:58 -05:00
parent 5fab31e5dd
commit d6c16e4253
51 changed files with 927 additions and 927 deletions

View file

@ -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,