Rename ItemEnum -> ItemKind, inner -> kind

This commit is contained in:
Joshua Nelson
2020-11-14 03:45:10 -05:00
parent a1f7ca788d
commit 03cbee84af
19 changed files with 129 additions and 131 deletions

View File

@@ -187,7 +187,7 @@ impl<'a, 'b> CoverageCalculator<'a, 'b> {
impl<'a, 'b> fold::DocFolder for CoverageCalculator<'a, 'b> {
fn fold_item(&mut self, i: clean::Item) -> Option<clean::Item> {
match i.inner {
match i.kind {
_ if !i.def_id.is_local() => {
// non-local items are skipped because they can be out of the users control,
// especially in the case of trait impls, which rustdoc eagerly inlines