diff options
| author | bors <bors@rust-lang.org> | 2025-04-29 16:31:27 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-04-29 16:31:27 +0000 |
| commit | 74509131e85a97353c67c503ea32e148a56cf4bd (patch) | |
| tree | 293f2e2e50223905110b3f460c08ee5381742ee1 /compiler/rustc_resolve/src | |
| parent | efcbb94dccbe0fcc1076f031f88332db4a6a2a52 (diff) | |
| parent | ff6a9800a38f30161ea7f819e2808f9bf97b5864 (diff) | |
| download | rust-74509131e85a97353c67c503ea32e148a56cf4bd.tar.gz rust-74509131e85a97353c67c503ea32e148a56cf4bd.zip | |
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
Diffstat (limited to 'compiler/rustc_resolve/src')
| -rw-r--r-- | compiler/rustc_resolve/src/late.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler/rustc_resolve/src/late.rs b/compiler/rustc_resolve/src/late.rs index bae2fdeecaf..faee0e7dd5f 100644 --- a/compiler/rustc_resolve/src/late.rs +++ b/compiler/rustc_resolve/src/late.rs @@ -958,6 +958,11 @@ impl<'ra: 'ast, 'ast, 'tcx> Visitor<'ast> for LateResolutionVisitor<'_, 'ast, 'r self.resolve_anon_const(end, AnonConstKind::ConstArg(IsRepeatExpr::No)); } } + TyPatKind::Or(patterns) => { + for pat in patterns { + self.visit_ty_pat(pat) + } + } TyPatKind::Err(_) => {} } } |
