Skip to content

Commit 67dc0d0

Browse files
committed
Move opt_rpitit_info field to hir::AssocKind::Type.
From `hir::AssocItem`.
1 parent d891f77 commit 67dc0d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/implied_bounds_in_impls.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ fn check<'tcx>(cx: &LateContext<'tcx>, bounds: GenericBounds<'tcx>) {
315315
assocs
316316
.filter_by_name_unhygienic(constraint.ident.name)
317317
.next()
318-
.is_some_and(|assoc| assoc.kind == ty::AssocKind::Type)
318+
.is_some_and(|assoc| assoc.is_type())
319319
})
320320
{
321321
emit_lint(cx, poly_trait, bounds, index, implied_constraints, bound);

0 commit comments

Comments
 (0)