Remove defaultness from ImplItem.

This commit is contained in:
Camille GILLOT 2022-02-02 12:44:51 +01:00
parent b606d160c8
commit 3edfd5ec3d

View File

@ -54,9 +54,6 @@ fn check_impl_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx hir::ImplItem<
),
hir::VisibilityKind::Inherited => println!("visibility inherited from outer item"),
}
if item.defaultness.is_default() {
println!("default");
}
match item.kind {
hir::ImplItemKind::Const(_, body_id) => {
println!("associated constant");