-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
cfg(doc) is not respected on cross-crate re-export #114952
Comments
I think it's because the deps are not built with this |
Yes, exactly. This is essentially a Cargo issue. If you were to manually use If I understand Correct me if I'm wrong. Footnotes
|
I think cargo doc doesn't set this config at all, it is injected by rustdoc in the I though rustdoc was responsible for recursing through the dependencies, but if it gets information from executions of rust then this should be added to cargo doc |
You might be right about Disclaimer: This is just what I can remember, I haven't double-checked any of this. |
No, neither |
I opened an issue there: rust-lang/cargo#12533 I found a few possibly related issues, but not specific for this:
Since the |
I tried this code:
I expected to see this happen: I expected
doc_only_method
to appear in crateb
Instead, this happened: It didn't.
Meta
This issue can be reproduced in both the stable and nightly version of the compiler.
The text was updated successfully, but these errors were encountered: