Skip to content

Commit

Permalink
Merge #40
Browse files Browse the repository at this point in the history
40: Use -Z doctest-in-workspace for doctests r=taiki-e a=taiki-e

cc #2 

Co-authored-by: Taiki Endo <te316e89@gmail.com>
  • Loading branch information
bors[bot] and taiki-e authored Jul 27, 2021
2 parents 0a2f01d + 354ad5a commit 38b8efb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com

## [Unreleased]

- [Fix mapping error in `--doctests`.](https://github.com/taiki-e/cargo-llvm-cov/pull/40)

## [0.1.0-alpha.4] - 2021-06-13

- [cargo-llvm-cov no longer requires rustfilt.](https://github.com/taiki-e/cargo-llvm-cov/pull/29)
Expand Down
5 changes: 5 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ fn main() -> Result<()> {
}

cargo.args(&["test", "--target-dir"]).arg(&cx.target_dir);
if cx.doctests && !cx.unstable_flags.iter().any(|f| f == "doctest-in-workspace") {
// https://github.com/rust-lang/cargo/issues/9427
cargo.arg("-Z");
cargo.arg("doctest-in-workspace");
}
append_args(cx, &mut cargo);

cargo.stdout_to_stderr().run()?;
Expand Down

0 comments on commit 38b8efb

Please sign in to comment.