Skip to content

Commit 744e8fa

Browse files
committed
handle ItemKind::TraitAlias
1 parent 649c36c commit 744e8fa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clippy_lints/src/utils/ast_utils/ident_iter.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,8 @@ impl <'item> Iterator for ItemIdentIter<'item> {
736736
.flat_map(ForeignItemIdentIter::new_p)
737737
)
738738
},
739-
ItemKind::TyAlias(_, ref generics, ref bounds, None) => {
739+
ItemKind::TyAlias(_, ref generics, ref bounds, None)
740+
| ItemKind::TraitAlias(ref generics, ref bounds) => {
740741
set_and_call_next_with_own_idents!(
741742
generics_iter(generics)
742743
.chain(generic_bounds_iter(bounds))

0 commit comments

Comments
 (0)