Skip to content

Add documents owner for ImplDef and SourceFile #4280

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

Merged
merged 1 commit into from
May 3, 2020

Conversation

edwin0cheng
Copy link
Member

@edwin0cheng edwin0cheng commented May 3, 2020

When working on #3182, I found that ImplDef and SourceFile do not implemet DocCommentsOwer trait, and I tested it in cargo doc that impl could has some doc-comments.

I am not so sure about SourceFile case, but in theory if that file is a crate root, the doc comment of it should represent the whole crate documentation, right ?

@matklad
Copy link
Member

matklad commented May 3, 2020

the doc comment of it should represent the whole crate documentation, right ?

Or the inner doc commnent of the corresponding module.

bors r+

@bors
Copy link
Contributor

bors bot commented May 3, 2020

@bors bors bot merged commit baa35b0 into rust-lang:master May 3, 2020
@edwin0cheng edwin0cheng deleted the add-doc-owners-to-impl branch May 3, 2020 12:42
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants