]> git.lizzy.rs Git - rust.git/commitdiff
Revert "Set test flag when rustdoc is running with --test option"
authorOliver Middleton <olliemail27@gmail.com>
Sat, 25 May 2019 22:54:12 +0000 (23:54 +0100)
committerOliver Middleton <olliemail27@gmail.com>
Sat, 8 Jun 2019 17:25:29 +0000 (18:25 +0100)
This reverts commit 8ed2292dbe75b9b65e9fe1a079428d1e1e3b610f.

It caused doctests in this repository to no longer be tested including all of the core crate.

src/librustdoc/config.rs

index 6b490f730afa0c951cab05c7dd5fcb79841321a7..67ca7f407d80164735e2b323444b44db8323a0c4 100644 (file)
@@ -351,9 +351,6 @@ pub fn from_matches(matches: &getopts::Matches) -> Result<Options, i32> {
                             .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));