about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2022-01-03 17:59:00 +0000
committerGitHub <noreply@github.com>2022-01-03 17:59:00 +0000
commit7409880a07803c34590ad162d7854061145c6eae (patch)
treea1a175253b7281520c5351cf0d73f8b41af4346f /src/test/codegen/src-hash-algorithm
parentb14af5cc6fa9bd704b49091fc290892908e773c6 (diff)
parent95145d5ab6c734ea8ca5e66a94ad381b9e897000 (diff)
downloadrust-7409880a07803c34590ad162d7854061145c6eae.tar.gz
rust-7409880a07803c34590ad162d7854061145c6eae.zip
Merge #11061
11061: Support "move if to guard" for if else chains r=weirane a=weirane

The idea is to first parse the if else chain into a vector of `(Condition, BlockExpr)`s until we reach an iflet branch, an else branch, or the end (the tail). Then add the match arms with guard for the vector, and add the tail with no if guard.

Because the whole original match arm is replaced and the generated code doesn't have redundent commas, I removed redundent commas in some test cases.

Closes #11033.

Co-authored-by: Wang Ruochen <wrc@ruo-chen.wang>
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions