Fixed 'Incorrect comment indent inside if/else' issue.#4459
Fixed 'Incorrect comment indent inside if/else' issue.#4459calebcartwright merged 8 commits intorust-lang:masterfrom
Conversation
|
Could you elaborate on the removal of the existing test file? |
|
@calebcartwright It was implemented to test #1575 and there are conflicts between the two cases. And already covered these cases in the new test file.
Should we need to detect the user's indentation and format the last comment with the user's indentation? |
|
@calebcartwright I changed the PR as you suggested in the comment #4120 (comment) . CI is failing because of a network error. |
|
Excellent news @whizsid. I've restarted the GH run as it did indeed look spurious. I didn't get a chance to go through the implementation changes, but did a quick run through the tests added and they look great! Will try to go through this in more detail tomorrow |
topecongiro
left a comment
There was a problem hiding this comment.
Thank you for the PR! LGTM.
calebcartwright
left a comment
There was a problem hiding this comment.
Well done @whizsid, thank you!
* Added test cases * Fixed if condition comment issue * Fixed extern C issue * Removed previous test case * Removed tmp file * honor the authors intent * Changed the file name to its original name * Removed extra whitespace
* Added test cases * Fixed if condition comment issue * Fixed extern C issue * Removed previous test case * Removed tmp file * honor the authors intent * Changed the file name to its original name * Removed extra whitespace
|
Backported in #4525 |
Fixes #4120 .