Skip to content

Commit af9b092

Browse files
committed
Remove ImplItemKind::OpaqueTy from clippy
1 parent 857ea16 commit af9b092

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

clippy_lints/src/missing_doc.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,6 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for MissingDoc {
187187
hir::ImplItemKind::Const(..) => "an associated constant",
188188
hir::ImplItemKind::Fn(..) => "a method",
189189
hir::ImplItemKind::TyAlias(_) => "an associated type",
190-
hir::ImplItemKind::OpaqueTy(_) => "an existential type",
191190
};
192191
self.check_missing_docs_attrs(cx, &impl_item.attrs, impl_item.span, desc);
193192
}

clippy_lints/src/missing_inline.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for MissingInline {
142142

143143
let desc = match impl_item.kind {
144144
hir::ImplItemKind::Fn(..) => "a method",
145-
hir::ImplItemKind::Const(..) | hir::ImplItemKind::TyAlias(_) | hir::ImplItemKind::OpaqueTy(_) => return,
145+
hir::ImplItemKind::Const(..) | hir::ImplItemKind::TyAlias(_) => return,
146146
};
147147

148148
let def_id = cx.tcx.hir().local_def_id(impl_item.hir_id);

clippy_lints/src/utils/inspector.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for DeepCodeInspector {
6363
},
6464
hir::ImplItemKind::Fn(..) => println!("method"),
6565
hir::ImplItemKind::TyAlias(_) => println!("associated type"),
66-
hir::ImplItemKind::OpaqueTy(_) => println!("existential type"),
6766
}
6867
}
6968
// fn check_trait_item(&mut self, cx: &LateContext<'a, 'tcx>, item: &'tcx

0 commit comments

Comments
 (0)