Skip to content

Commit bca637c

Browse files
committed
Add or-patterns to pattern types
1 parent 6e64338 commit bca637c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

clippy_utils/src/hir_utils.rs

+5
Original file line numberDiff line numberDiff line change
@@ -1117,6 +1117,11 @@ impl<'a, 'tcx> SpanlessHash<'a, 'tcx> {
11171117
self.hash_const_arg(s);
11181118
self.hash_const_arg(e);
11191119
},
1120+
TyPatKind::Or(variants) => {
1121+
for variant in variants.iter() {
1122+
self.hash_ty_pat(variant)
1123+
}
1124+
},
11201125
TyPatKind::Err(_) => {},
11211126
}
11221127
}

0 commit comments

Comments
 (0)