We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4eff852 commit 8ed2292Copy full SHA for 8ed2292
src/librustdoc/config.rs
@@ -351,6 +351,9 @@ impl Options {
351
.unwrap_or_else(|| PathBuf::from("doc"));
352
let mut cfgs = matches.opt_strs("cfg");
353
cfgs.push("rustdoc".to_string());
354
+ if should_test {
355
+ cfgs.push("test".to_string());
356
+ }
357
358
let extension_css = matches.opt_str("e").map(|s| PathBuf::from(&s));
359
0 commit comments