-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
cross-compilation doctests warning should not be behind verbose flag #12118
Comments
It was an intentional choice in #10132. Warning for every doctest target may be noisy. Could be improved by warning just once in normal mode if there is a cross-compile doctest, hinting people to use Relevant code is here: cargo/src/cargo/ops/cargo_test.rs Lines 190 to 205 in 0e93732
|
Just a friendly reminder. It would be great for collaboration if people always strive to provide reproducible steps and version information for their issues. That may increase the chance for anyone wanting to fix gets started sooner. |
Apologies. Just added these. |
Labeled as
P-low
|
Would be okay if I work on this one? @weihanglo |
I'm just having trouble building, I been having the message below in some crates:
Any ideia? |
Try to use the latest stable version or nightly version rustc. |
As it is labeled as |
Problem
I just spent a lot longer than I'm willing to admit trying to work out why my doctests were not running. After working out I'd done everything correctly I finally tried
--verbose
and found the warning about cross-compilation not being supported.cargo test
completes successfully and I've not even known that the doctests have been skipped for months! Why is this warning hidden behind the verbose flag?Steps
Create a src file with failing doc tests:
lib.rs
Ensure you're building for another target. For me, this was on an M1 mac with the following
.cargo/config
to make this a cross platform build:Run
cargo test --doc
Results in no output after the build output.
Version
cargo 1.69.0
The text was updated successfully, but these errors were encountered: