Skip to content

Commit c9c62c4

Browse files
(Re-)Implement impl_trait_in_bindings
1 parent 695f938 commit c9c62c4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

clippy_lints/src/dereference.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -814,6 +814,7 @@ impl TyCoercionStability {
814814
| TyKind::Tup(_)
815815
| TyKind::Path(_) => Self::Deref,
816816
TyKind::OpaqueDef(..)
817+
| TyKind::TraitAscription(..)
817818
| TyKind::Infer
818819
| TyKind::Typeof(..)
819820
| TyKind::TraitObject(..)

clippy_utils/src/hir_utils.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1260,7 +1260,8 @@ impl<'a, 'tcx> SpanlessHash<'a, 'tcx> {
12601260
| TyKind::Infer
12611261
| TyKind::Never
12621262
| TyKind::InferDelegation(..)
1263-
| TyKind::OpaqueDef(_) => {},
1263+
| TyKind::OpaqueDef(_)
1264+
| TyKind::TraitAscription(_) => {},
12641265
}
12651266
}
12661267

0 commit comments

Comments
 (0)