-
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
Bad call to rustdoc
when cargo test --package feature
when using features
#3172
Comments
Maybe a duplicate of #2539 |
Right now The bug here is that we're passing I think we'll want to tweak this logic and perhaps just update I'm going to tag this |
Hi @alexcrichton, I can take a look at this if no one has done it yet. (yes, I'm chasing |
@jhbabon sure! Let me know if you need any pointers! |
Hi! Sorry for the delay on this. This is the fix I managed to do: #3242 |
FIX: Call rustdoc test with the correct cfg flags of a package. There was a situation in which if you you had a lib that depends on a package with features, whenever you ran the tests for the package the `rustdoc test` call was failing because it was called with the root `cfg` flags, not the package `cfg` flags. This fix solves the issue by keeping track of the `cfg` flags per package, so the `rustdoc` command will be generated with the correct `cfg` flags. Closes #3172
TLDR: this (almost) minimal project doesn't work: https://github.com/TeXitoi/cargo_bug_feature_package
When using features, and calling
cargo test --package feature
,--cfg
arguments are bad when callingrustdoc
.The text was updated successfully, but these errors were encountered: