diff options
| author | dianne <diannes.gm@gmail.com> | 2025-07-04 01:23:36 -0700 |
|---|---|---|
| committer | dianne <diannes.gm@gmail.com> | 2025-07-04 01:28:35 -0700 |
| commit | 98659a339dd7203e0f23871b327b9305940e0d61 (patch) | |
| tree | 14d11fe6bd9ea205bb46778bd74bcadaf3ccf5de /compiler/rustc_codegen_llvm/src | |
| parent | 837c5dd7de03aa97190593aef4e70d53e1bb574b (diff) | |
| download | rust-98659a339dd7203e0f23871b327b9305940e0d61.tar.gz rust-98659a339dd7203e0f23871b327b9305940e0d61.zip | |
treat box patterns as deref patterns in THIR and usefulness analysis
This removes special-casing of boxes from `rustc_pattern_analysis`, as a first step in replacing `box_patterns` with `deref_patterns`. Incidentally, it fixes a bug caused by box patterns being represented as structs rather than pointers, where `exhaustive_patterns` could generate spurious `unreachable_patterns` lints on arms required for exhaustiveness; following the lint's advice would result in an error.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
