about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-03-13 06:41:20 +0100
committerGitHub <noreply@github.com>2024-03-13 06:41:20 +0100
commit1b198ba9fe4e1af377cd0550790859b2273add3f (patch)
tree8adf3b90e7e7113bf583679250a8379eb77afcc5 /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parentd3555f3d8e555ce488bbf8eee5eccdb66a464e14 (diff)
parentd339bdaa071ae50e20b9dbf1084df30a92c9576f (diff)
downloadrust-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