From 6cc42ce286b1a0693acc4ed2db9d9aa64ec16be1 Mon Sep 17 00:00:00 2001 From: Oliver Middleton Date: Sat, 25 May 2019 23:54:12 +0100 Subject: [PATCH] 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. --- src/librustdoc/config.rs | 3 --- 1 file changed, 3 deletions(-) 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)); -- 2.44.0