diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-03-13 06:41:20 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-13 06:41:20 +0100 |
| commit | 1b198ba9fe4e1af377cd0550790859b2273add3f (patch) | |
| tree | 8adf3b90e7e7113bf583679250a8379eb77afcc5 /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp | |
| parent | d3555f3d8e555ce488bbf8eee5eccdb66a464e14 (diff) | |
| parent | d339bdaa071ae50e20b9dbf1084df30a92c9576f (diff) | |
| download | rust-1b198ba9fe4e1af377cd0550790859b2273add3f.tar.gz rust-1b198ba9fe4e1af377cd0550790859b2273add3f.zip | |
Rollup merge of #121820 - Nadrieril:idxpat2, r=compiler-errors
pattern analysis: Store field indices in `DeconstructedPat` to avoid virtual wildcards
For a pattern like `Struct { field3: true, .. }`, in pattern analysis we represent it as `Struct { field1: _, field2: _, field3: true, field4: _ }`. This PR makes it so we store `Struct { field3: true, .. }` instead. This means we never have to create fake `_` patterns during lowering.
r? ``@compiler-errors``
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
