Skip to content

Commit f495cec

Browse files
Remove more traces of anonymous ADTs
1 parent 1857833 commit f495cec

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

clippy_lints/src/dereference.rs

-1
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,6 @@ impl TyCoercionStability {
818818
| TyKind::Typeof(..)
819819
| TyKind::TraitObject(..)
820820
| TyKind::InferDelegation(..)
821-
| TyKind::AnonAdt(..)
822821
| TyKind::Err(_) => Self::Reborrow,
823822
};
824823
}

clippy_utils/src/hir_utils.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,6 @@ impl HirEqInterExpr<'_, '_, '_> {
596596
(TyKind::Path(l), TyKind::Path(r)) => self.eq_qpath(l, r),
597597
(&TyKind::Tup(l), &TyKind::Tup(r)) => over(l, r, |l, r| self.eq_ty(l, r)),
598598
(&TyKind::Infer, &TyKind::Infer) => true,
599-
(TyKind::AnonAdt(l_item_id), TyKind::AnonAdt(r_item_id)) => l_item_id == r_item_id,
600599
_ => false,
601600
}
602601
}
@@ -1246,8 +1245,7 @@ impl<'a, 'tcx> SpanlessHash<'a, 'tcx> {
12461245
| TyKind::Infer
12471246
| TyKind::Never
12481247
| TyKind::InferDelegation(..)
1249-
| TyKind::OpaqueDef(_)
1250-
| TyKind::AnonAdt(_) => {},
1248+
| TyKind::OpaqueDef(_) => {},
12511249
}
12521250
}
12531251

0 commit comments

Comments
 (0)