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 test --doc silently fails with --target x86_64-unknown-linux-musl #58073

Closed
WildCryptoFox opened this issue Feb 2, 2019 · 2 comments
Closed
Labels
C-bug Category: This is a bug. O-musl Target: The musl libc

Comments

@WildCryptoFox
Copy link
Contributor

src.rs

//! ```
//! assert_eq!(1 + 1, 2);
//! ```

cargo test --doc; echo rc=$?

   Compiling hello-world v0.1.0 (hello-world)
    Finished dev [unoptimized + debuginfo] target(s) in 0.37s
     Running target/debug/deps/hello-world-4720fc1f96669b3c

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

   Doc-tests aaa

running 1 test
test src/lib.rs -  (line 1) ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

rc=0

cargo test --doc --target x86_64-unknown-linux-musl; echo rc=$?

   Compiling hello-world v0.1.0 (hello-world)
    Finished dev [unoptimized + debuginfo] target(s) in 0.12s
rc=0
@WildCryptoFox WildCryptoFox changed the title cargo doc silently fails with --target x86_64-unknown-linux-musl cargo test --doc silently fails with --target x86_64-unknown-linux-musl Feb 2, 2019
@jonas-schievink jonas-schievink added O-musl Target: The musl libc C-bug Category: This is a bug. labels Feb 2, 2019
@ehuss
Copy link
Contributor

ehuss commented Feb 2, 2019

I think this is a known issue. See #31907, #44404, and rust-lang/cargo#6460.

@ehuss
Copy link
Contributor

ehuss commented Jun 14, 2020

Closing in favor of the tracking issues #64245 and rust-lang/cargo#7040.

@ehuss ehuss closed this as completed Jun 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. O-musl Target: The musl libc
Projects
None yet
Development

No branches or pull requests

3 participants