]> git.lizzy.rs Git - rust.git/commit
Update trailing comma match logic, add tests
authorBryce Van Dyk <bryce@vandyk.net.nz>
Tue, 1 Dec 2015 07:10:57 +0000 (20:10 +1300)
committerBryce Van Dyk <bryce@vandyk.net.nz>
Tue, 1 Dec 2015 07:10:57 +0000 (20:10 +1300)
commit7ce887abcff3d9254ae7f152f9d8becb42964ff2
treef8d4ef8493182ba56b4647f8d2b5bddaa5070526
parent2a430a8947ceebd6a181084969f169490db05dd1
Update trailing comma match logic, add tests

Updates the traling comma code to attempt to handle multiline non-block bodies when
adding traling commas to blocks. Also add and update tests to cover better
the interactions between trailing commas and wrapping match arms.
src/expr.rs
tests/source/match-block-trailing-comma.rs
tests/source/match-nowrap-trailing-comma.rs [new file with mode: 0644]
tests/target/match-block-trailing-comma.rs
tests/target/match-nowrap-trailing-comma.rs [new file with mode: 0644]