Skip to content
Permalink
Browse files

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

  • Loading branch information...
GuillaumeGomez committed Apr 13, 2019
1 parent 4eff852 commit 8ed2292dbe75b9b65e9fe1a079428d1e1e3b610f
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/librustdoc/config.rs
@@ -351,6 +351,9 @@ 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));

0 comments on commit 8ed2292

Please sign in to comment.
You can’t perform that action at this time.