Skip to content

match lowering: Hide Candidate from outside the lowering algorithm#127159

Merged
bors merged 5 commits intorust-lang:masterfrom
Nadrieril:hide-candidate
Aug 1, 2024
Merged

match lowering: Hide Candidate from outside the lowering algorithm#127159
bors merged 5 commits intorust-lang:masterfrom
Nadrieril:hide-candidate

Conversation

@Nadrieril
Copy link
Copy Markdown
Member

@Nadrieril Nadrieril commented Jun 30, 2024

The internals of Candidate are tricky and a source of confusion. This PR makes it so we don't expose Candidates 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

try-job: x86_64-rust-for-linux

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants