Skip to content

Commit 6cc42ce

Browse files
committed
Revert "Set test flag when rustdoc is running with --test option"
This reverts commit 8ed2292. It caused doctests in this repository to no longer be tested including all of the core crate.
1 parent 5c45343 commit 6cc42ce

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/librustdoc/config.rs

-3
Original file line numberDiff line numberDiff line change
@@ -351,9 +351,6 @@ impl Options {
351351
.unwrap_or_else(|| PathBuf::from("doc"));
352352
let mut cfgs = matches.opt_strs("cfg");
353353
cfgs.push("rustdoc".to_string());
354-
if should_test {
355-
cfgs.push("test".to_string());
356-
}
357354

358355
let extension_css = matches.opt_str("e").map(|s| PathBuf::from(&s));
359356

0 commit comments

Comments
 (0)