Rename rustdoc/test -> rustdoc/doctest

This modules contains the implementation of doctests, and not the
tests of rustdoc itself. This name is confusing, so let's rename it to
doctest for clarity.
This commit is contained in:
Aleksey Kladov
2020-08-27 18:20:15 +02:00
parent f7cbb7a594
commit df975cf9c2
6 changed files with 7 additions and 7 deletions

View File

@@ -64,13 +64,13 @@ mod docfs;
mod doctree;
#[macro_use]
mod error;
mod doctest;
mod fold;
crate mod formats;
pub mod html;
mod json;
mod markdown;
mod passes;
mod test;
mod theme;
mod visit_ast;
mod visit_lib;
@@ -476,7 +476,7 @@ fn main_options(options: config::Options) -> MainResult {
match (options.should_test, options.markdown_input()) {
(true, true) => return wrap_return(&diag, markdown::test(options)),
(true, false) => return test::run(options),
(true, false) => return doctest::run(options),
(false, true) => {
return wrap_return(
&diag,