Skip to content

Commit 244af0f

Browse files
Correctly handle rustdoc PlaceholderImplItem in lints
1 parent 2d4b185 commit 244af0f

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/librustdoc/passes/calculate_doc_coverage.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ impl DocVisitor<'_> for CoverageCalculator<'_, '_> {
199199
}
200200

201201
match i.kind {
202-
clean::StrippedItem(..) => {
202+
clean::StrippedItem(..) | clean::PlaceholderImplItem => {
203203
// don't count items in stripped modules
204204
return;
205205
}

src/librustdoc/passes/check_doc_test_visibility.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ pub(crate) fn should_have_doc_example(cx: &DocContext<'_>, item: &clean::Item) -
8080
| clean::ImplAssocConstItem(..)
8181
| clean::RequiredAssocTypeItem(..)
8282
| clean::ImplItem(_)
83+
| clean::PlaceholderImplItem
8384
)
8485
{
8586
return false;

0 commit comments

Comments
 (0)