From: Oliver Middleton Date: Sat, 25 May 2019 22:54:12 +0000 (+0100) Subject: Revert "Set test flag when rustdoc is running with --test option" X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=6cc42ce286b1a0693acc4ed2db9d9aa64ec16be1;p=rust.git Revert "Set test flag when rustdoc is running with --test option" This reverts commit 8ed2292dbe75b9b65e9fe1a079428d1e1e3b610f. It caused doctests in this repository to no longer be tested including all of the core crate. --- diff --git a/src/librustdoc/config.rs b/src/librustdoc/config.rs index 6b490f730af..67ca7f407d8 100644 --- a/src/librustdoc/config.rs +++ b/src/librustdoc/config.rs @@ -351,9 +351,6 @@ pub fn from_matches(matches: &getopts::Matches) -> Result { .unwrap_or_else(|| PathBuf::from("doc")); let mut cfgs = matches.opt_strs("cfg"); cfgs.push("rustdoc".to_string()); - if should_test { - cfgs.push("test".to_string()); - } let extension_css = matches.opt_str("e").map(|s| PathBuf::from(&s));