You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rodrimati1992
changed the title
doc attributes on reexport of type copies docs to inherent impls
doc attributes on reexport of type copies those docs to inherent impls
Oct 11, 2022
rodrimati1992
changed the title
doc attributes on reexport of type copies those docs to inherent impls
doc attributes on reexport of type are copied to inherent impls
Oct 11, 2022
…impl-block, r=notriddle
Fix unwanted merge of inline doc comments for impl blocks
Fixesrust-lang#102909.
We need this merge mechanism for inlined items but it's completely unwanted for impl blocks (at least the doc comments are, not the other attributes) since we want to keep what `cfg()` is put on the `pub use` or other attributes.
r? `@notriddle`
With a
foo_lib
dependency, I tried documenting thebar_lib
crate 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
impl
block 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
The text was updated successfully, but these errors were encountered: