With a foo_lib dependency, I tried documenting the bar_lib crate with this code:
/// These are the docs for Foo.
pub use foo_lib::Foo;
I expected to see this happen: the documentation appears only for the type.
Instead, this happened: the documentation appears on the type's inherent impl block as well as the type.

Meta
rustc --version --verbose:
rustc 1.64.0 (a55dd71d5 2022-09-19)
binary: rustc
commit-hash: a55dd71d5fb0ec5a6a3a9e8c27b2127ba491ce52
commit-date: 2022-09-19
host: x86_64-unknown-linux-gnu
release: 1.64.0
LLVM version: 14.0.6
I provide an example repository for replicating this bug:
https://github.com/rodrimati1992/duplicated_docs_issue
With a
foo_libdependency, I tried documenting thebar_libcrate with this code:I expected to see this happen: the documentation appears only for the type.
Instead, this happened: the documentation appears on the type's inherent
implblock as well as the type.Meta
rustc --version --verbose:I provide an example repository for replicating this bug:
https://github.com/rodrimati1992/duplicated_docs_issue