diff options
| author | Zalathar <Zalathar@users.noreply.github.com> | 2024-08-02 20:55:53 +1000 |
|---|---|---|
| committer | Zalathar <Zalathar@users.noreply.github.com> | 2024-08-07 21:44:52 +1000 |
| commit | a245bfa61792cfa4c9cf29adae7dbe1b833f705c (patch) | |
| tree | 5eb8de228c5f89373c118c05aebf77dbb4ef95a7 /compiler/rustc_pattern_analysis/src/constructor.rs | |
| parent | c764bea0c3d8ca9b9fc40b032376d5a1ea1e9096 (diff) | |
| download | rust-a245bfa61792cfa4c9cf29adae7dbe1b833f705c.tar.gz rust-a245bfa61792cfa4c9cf29adae7dbe1b833f705c.zip | |
Simplify hoisting of array/slice patterns
We can replace some tricky iterator-mutation code with a much simpler version that uses `while let` to shrink a slice. We also check whether a subpattern would be a wildcard _before_ hoisting it, which will be very useful when trying to get rid of `print::PatKind` later.
Diffstat (limited to 'compiler/rustc_pattern_analysis/src/constructor.rs')
0 files changed, 0 insertions, 0 deletions
