-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
panic: "rustdoc
should not accept multiple -p
flags" with --document-private-items
#5958
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: