Skip to content

Commit b0c3228

Browse files
committed
Join match arms since they do the same thing
1 parent 8937720 commit b0c3228

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

compiler/rustc_hir_analysis/src/collect/predicates_of.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,7 @@ fn gather_explicit_predicates_of(tcx: TyCtxt<'_>, def_id: DefId) -> ty::GenericP
9797
| ItemKind::Struct(_, ref generics)
9898
| ItemKind::Union(_, ref generics) => *generics,
9999

100-
ItemKind::Trait(_, _, ref generics, ..) => {
101-
is_trait = Some(ty::TraitRef::identity(tcx, def_id));
102-
*generics
103-
}
104-
ItemKind::TraitAlias(ref generics, _) => {
100+
ItemKind::Trait(_, _, ref generics, ..) | ItemKind::TraitAlias(ref generics, _) => {
105101
is_trait = Some(ty::TraitRef::identity(tcx, def_id));
106102
*generics
107103
}

0 commit comments

Comments
 (0)