Rollup merge of #81492 - camelid:rustdoc-internal-mod-vis, r=GuillaumeGomez

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.

r? ``@GuillaumeGomez``
This commit is contained in:
Jonas Schievink 2021-02-02 12:14:57 +01:00 committed by GitHub
commit 30f12a0379
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -2,6 +2,7 @@ crate mod escape;
crate mod format;
crate mod highlight;
crate mod layout;
// used by the error-index generator, so it needs to be public
pub mod markdown;
crate mod render;
crate mod sources;

View File

@ -83,7 +83,8 @@ mod doctree;
mod error;
mod doctest;
mod fold;
crate mod formats;
mod formats;
// used by the error-index generator, so it needs to be public
pub mod html;
mod json;
mod markdown;