Skip to content

Commit

Permalink
Support trybuild (take 2)
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Aug 10, 2021
1 parent 6c6a2fb commit ca93cb9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ fn run_test(cx: &Context) -> Result<()> {
" -Z instrument-coverage --remap-path-prefix {}/=",
cx.metadata.workspace_root
));
if cx.target.is_none() {
rustflags.push(" --cfg trybuild_no_target");
}

// https://doc.rust-lang.org/nightly/unstable-book/compiler-flags/instrument-coverage.html#including-doc-tests
let rustdocflags = &mut cx.env.rustdocflags.clone();
Expand Down

0 comments on commit ca93cb9

Please sign in to comment.