Skip to content

Commit 09f4a43

Browse files
committed
Auto merge of #140474 - tgross35:rollup-rdkao89, r=tgross35
Rollup of 7 pull requests Successful merges: - #138344 (Enable `reliable_f16_math` on x86) - #139909 (implement or-patterns for pattern types) - #140392 (compiletest: Remove the libtest-based executor and its dependency) - #140400 (PassWrapper: adapt for llvm/llvm-project@d3d856ad8469) - #140422 (unwind: bump `unwinding` dependency to 0.2.6) - #140432 (Update documentation for `fn target_config`) - #140433 (Replace the \01__gnu_mcount_nc to LLVM intrinsic for additional ARM targets) r? `@ghost` `@rustbot` modify labels: rollup
2 parents 7852118 + 31d5876 commit 09f4a43

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

clippy_utils/src/hir_utils.rs

Lines changed: 5 additions & 0 deletions
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)