Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cargo skips "Doc-tests" when targeting x86_64-pc-windows-msvc. #8111

Closed
thoren-d opened this issue Apr 15, 2020 · 1 comment
Closed

Cargo skips "Doc-tests" when targeting x86_64-pc-windows-msvc. #8111

thoren-d opened this issue Apr 15, 2020 · 1 comment
Labels
C-bug Category: bug

Comments

@thoren-d
Copy link

thoren-d commented Apr 15, 2020

Problem
If I run cargo test out of the box, "Doc-tests" is run and cargo invokes rustdoc as expected, but if I set --target x86_64-pc-windows-msvc on Windows (after installing the target with rustup), "Doc-tests"

Steps

  1. cargo test --target i686-pc-windows-msvc
    "Doc-tests" in the output
  2. cargo test --target x86_64-pc-windows-msvc
    "Doc-tests not in the output

Notes
i686-pc-windows-msvc is the default target used on Windows.

Output of cargo version: cargo 1.42.0 (86334295e 2020-01-31)
Output of rustup --version: rustup 1.21.1 (7832b2ebe 2019-12-20)
Output of rustc --version: rustc 1.42.0 (b8cedc004 2020-03-09)

@thoren-d thoren-d added the C-bug Category: bug label Apr 15, 2020
@ehuss
Copy link
Contributor

ehuss commented Apr 15, 2020

Cross-compilation of doc tests is currently an experimental feature. See #7040 for more detail.

@ehuss ehuss closed this as completed Apr 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug
Projects
None yet
Development

No branches or pull requests

2 participants