Skip to content

Commit d61990c

Browse files
Pass the same options to rustdoc as cargo test
`cargo test` passes `-C embed-bitcode=no --error-format human` to `rustdoc`. This commit adds those arguments to `mdbook`'s invocation of `rustdoc`.
1 parent 32687e6 commit d61990c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/book/mod.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,13 @@ impl MDBook {
326326
let mut cmd = Command::new("rustdoc");
327327
cmd.current_dir(temp_dir.path())
328328
.arg(&chapter_path)
329-
.arg("--test")
329+
.args(&[
330+
"--test",
331+
"-C",
332+
"embed-bitcode=no",
333+
"--error-format",
334+
"human",
335+
])
330336
.args(&library_args);
331337

332338
if let Some(edition) = self.config.rust.edition {

0 commit comments

Comments
 (0)