-
Notifications
You must be signed in to change notification settings - Fork 2.6k
panic: "rustdoc
should not accept multiple -p
flags" with --document-private-items
#5958
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
Comments
If you want a workaround, you can run: I'm not sure I understand the original motivation for the restriction that custom flags can only apply to one Unit, especially considering you can use environment variables to circumvent that restriction. |
Thanks for the report! Definitely a bug in Cargo we should fix! |
@alexcrichton What do you think about removing the "only one unit" restriction for |
@ehuss I think we'll want to keep that for the |
Fix --document-private-items for multiple targets. Closes #5958.
Running cargo 1.29.0-nightly (0ec7281 2018-08-20) on x86_64-unknown-linux-gnu.
I've grabbed rust-lang-nursery/futures-rs from Git, and am attempting to generate documentation. If I do
cargo doc --document-private-items
in the workspace at the root of the repo, I get a panic:The text was updated successfully, but these errors were encountered: