]> git.proxmox.com Git - cargo.git/commit - src/etc/man/cargo-add.1
Auto merge of #10142 - jyn514:bin-private-link, r=ehuss
authorbors <bors@rust-lang.org>
Fri, 6 May 2022 19:48:59 +0000 (19:48 +0000)
committerbors <bors@rust-lang.org>
Fri, 6 May 2022 19:48:59 +0000 (19:48 +0000)
commit08b8fe5c2d10a55a4d272dbf640b825840de6143
treef7e783d16b3b9c4cd49a08514f1051bc7ad9c479
parent0f75da631b4284180232c5a50bdf37e714acd059
parent727baf0db196a6926e5ce755e73b5af5fd6ccf2a
Auto merge of #10142 - jyn514:bin-private-link, r=ehuss

When documenting private items in a binary, ignore warnings about links to private items

Previously, rustdoc would warn about linking to private items in a binary, even
though cargo unconditionally documents private items in a binary.
This changes cargo to silence the warning, since it's only relevant in
cases where the private items might not be documented.

Fixes https://github.com/rust-lang/rust/issues/89600.
src/cargo/ops/cargo_compile.rs
tests/testsuite/doc.rs