Revert "Set test flag when rustdoc is running with --test option"

This reverts commit 8ed2292dbe.

It caused doctests in this repository to no longer be tested including all of the core crate.
This commit is contained in:
Oliver Middleton 2019-05-25 23:54:12 +01:00
parent 5c45343f11
commit 6cc42ce286

View file

@ -351,9 +351,6 @@ impl Options {
.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));