about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/src/errors.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-07-31 23:20:10 +0200
committerGitHub <noreply@github.com>2024-07-31 23:20:10 +0200
commit19f6ff065514d187a70ff917bbf6aebba4f87d28 (patch)
tree64562d13060ef546a061ea0c8756d67e7da83c2a /compiler/rustc_pattern_analysis/src/errors.rs
parent3acd910036eee61272e9adbe8ab73867bf19103e (diff)
parent08bcc0139405fb0592a87488759990d615414f08 (diff)
downloadrust-19f6ff065514d187a70ff917bbf6aebba4f87d28.tar.gz
rust-19f6ff065514d187a70ff917bbf6aebba4f87d28.zip
Rollup merge of #127159 - Nadrieril:hide-candidate, r=matthewjasper
match lowering: Hide `Candidate` from outside the lowering algorithm

The internals of `Candidate` are tricky and a source of confusion. This PR makes it so we don't expose `Candidate`s outside the lowering algorithm. Now:
- false edges are handled in `lower_match_tree`;
- `lower_match_tree` takes a list of patterns as input;
- `lower_match_tree` returns a flat datastructure that contains only the necessary information.

r? ```@matthewjasper```
Diffstat (limited to 'compiler/rustc_pattern_analysis/src/errors.rs')
0 files changed, 0 insertions, 0 deletions