We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e98a25 commit fc94593Copy full SHA for fc94593
src/librustdoc/passes/calculate_doc_coverage.rs
@@ -43,7 +43,11 @@ struct CoverageCalculator {
43
impl fold::DocFolder for CoverageCalculator {
44
fn fold_item(&mut self, i: clean::Item) -> Option<clean::Item> {
45
match i.inner {
46
- clean::StrippedItem(..) => {}
+ clean::StrippedItem(..) => {
47
+ // don't count items in stripped modules
48
+ return Some(i);
49
+ }
50
+ clean::ImportItem(..) | clean::ExternCrateItem(..) => {}
51
clean::ImplItem(ref impl_)
52
if attr::contains_name(&i.attrs.other_attrs, "automatically_derived")
53
|| impl_.synthetic || impl_.blanket_impl.is_some() =>
0 commit comments