Skip to content

Commit 251021c

Browse files
committed
Merge two equal match arms
1 parent 8d03e13 commit 251021c

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

compiler/rustc_ty_utils/src/sig_types.rs

+1-6
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,7 @@ pub fn walk_types<'tcx, V: SpannedTypeVisitor<'tcx>>(
8282
for (pred, span) in tcx.predicates_of(item).instantiate_identity(tcx) {
8383
visitor.visit(span, pred)?;
8484
}}
85-
DefKind::Trait => {
86-
for (pred, span) in tcx.predicates_of(item).instantiate_identity(tcx) {
87-
visitor.visit(span, pred)?;
88-
}
89-
}
90-
DefKind::TraitAlias => {
85+
DefKind::TraitAlias | DefKind::Trait => {
9186
for (pred, span) in tcx.predicates_of(item).instantiate_identity(tcx) {
9287
visitor.visit(span, pred)?;
9388
}

0 commit comments

Comments
 (0)