transpile: Convert final return statement into tail expression#1497
transpile: Convert final return statement into tail expression#1497Rua wants to merge 3 commits intoimmunant:masterfrom
Conversation
|
I ran into an unexpected snag with this one: the |
kkysen
left a comment
There was a problem hiding this comment.
It seems this is passing c2rust-testsuite CI even though there are many errors, so something went wrong there. Ugh.
80842e4 to
d50212e
Compare
|
I was able to remove the semicolon-adding code from |
a899517 to
4dbc629
Compare
4dbc629 to
a24257c
Compare
|
In order to solve #1506 I had to add another variant to the |
ad48749 to
a87f05b
Compare
|
I don't think this PR will affect that one, but we'll have to see I suppose. |
That's not surprising, #1544 changed a few details about how we emit the expression in a |
|
There is also a clippy lint for this https://rust-lang.github.io/rust-clippy/master/index.html#needless_return. Could we just run that instead? |
|
Can clippy run even when no Cargo.toml has been generated? |
returnis stripped from end of statement expressions #1506.returnis emitted in final statement #1496.