Skip to content

Commit 74c51ce

Browse files
Don't emit missing_doc_code_examples on impl items
1 parent eaf4e74 commit 74c51ce

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/librustdoc/passes/check_doc_test_visibility.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,7 @@ pub(crate) fn should_have_doc_example(cx: &DocContext<'_>, item: &clean::Item) -
7979
| clean::ProvidedAssocConstItem(..)
8080
| clean::ImplAssocConstItem(..)
8181
| clean::RequiredAssocTypeItem(..)
82-
// check for trait impl
83-
| clean::ImplItem(box clean::Impl { trait_: Some(_), .. })
82+
| clean::ImplItem(_)
8483
)
8584
{
8685
return false;

0 commit comments

Comments
 (0)