diff options
| author | Michael Goulet <michael@errs.io> | 2024-12-10 19:50:40 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-12-10 19:50:47 +0000 |
| commit | f495cec548de88462818aa405ab37b2b701ef18f (patch) | |
| tree | 27cbe8b3fa11c1e6daee0a99548534a5d80c598b | |
| parent | 1857833cdf6d043ee2c24c5a1603853d411f1e1f (diff) | |
| download | rust-f495cec548de88462818aa405ab37b2b701ef18f.tar.gz rust-f495cec548de88462818aa405ab37b2b701ef18f.zip | |
Remove more traces of anonymous ADTs
| -rw-r--r-- | clippy_lints/src/dereference.rs | 1 | ||||
| -rw-r--r-- | clippy_utils/src/hir_utils.rs | 4 |
2 files changed, 1 insertions, 4 deletions
diff --git a/clippy_lints/src/dereference.rs b/clippy_lints/src/dereference.rs index c449a1a875b..c300f7cd665 100644 --- a/clippy_lints/src/dereference.rs +++ b/clippy_lints/src/dereference.rs @@ -818,7 +818,6 @@ impl TyCoercionStability { | TyKind::Typeof(..) | TyKind::TraitObject(..) | TyKind::InferDelegation(..) - | TyKind::AnonAdt(..) | TyKind::Err(_) => Self::Reborrow, }; } diff --git a/clippy_utils/src/hir_utils.rs b/clippy_utils/src/hir_utils.rs index 4be4340862d..e318ad8671c 100644 --- a/clippy_utils/src/hir_utils.rs +++ b/clippy_utils/src/hir_utils.rs @@ -596,7 +596,6 @@ impl HirEqInterExpr<'_, '_, '_> { (TyKind::Path(l), TyKind::Path(r)) => self.eq_qpath(l, r), (&TyKind::Tup(l), &TyKind::Tup(r)) => over(l, r, |l, r| self.eq_ty(l, r)), (&TyKind::Infer, &TyKind::Infer) => true, - (TyKind::AnonAdt(l_item_id), TyKind::AnonAdt(r_item_id)) => l_item_id == r_item_id, _ => false, } } @@ -1246,8 +1245,7 @@ impl<'a, 'tcx> SpanlessHash<'a, 'tcx> { | TyKind::Infer | TyKind::Never | TyKind::InferDelegation(..) - | TyKind::OpaqueDef(_) - | TyKind::AnonAdt(_) => {}, + | TyKind::OpaqueDef(_) => {}, } } |
