Skip to content

Commit 82010e8

Browse files
committed
rustdoc: Note why rustdoc::html::markdown is public
Almost all of the modules are crate-private, except for `rustdoc::json::types`, which I believe is intended to be for public use; and `rustdoc::html::markdown`, which is used externally by the error-index generator and so has to be public.
1 parent bf193d6 commit 82010e8

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/librustdoc/html/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ crate mod escape;
22
crate mod format;
33
crate mod highlight;
44
crate mod layout;
5+
// used by the error-index generator, so it needs to be public
56
pub mod markdown;
67
crate mod render;
78
crate mod sources;

src/librustdoc/lib.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ mod doctree;
8383
mod error;
8484
mod doctest;
8585
mod fold;
86-
crate mod formats;
86+
mod formats;
87+
// used by the error-index generator, so it needs to be public
8788
pub mod html;
8889
mod json;
8990
mod markdown;

0 commit comments

Comments
 (0)