rust-clippy icon indicating copy to clipboard operation
rust-clippy copied to clipboard

Ignore `match_like_matches_macro` when there is comment

Open dswij opened this issue 2 years ago • 1 comments

Closes #9164

changelog: [match_like_matches_macro] is ignored when there is some comment inside the match block.

Also add span_contains_comment util to check if given span contains comments.

dswij avatar Aug 01 '22 12:08 dswij

r? @flip1995

(rust-highfive has picked a reviewer for you, use r? to override)

rust-highfive avatar Aug 01 '22 12:08 rust-highfive

Thanks for the review!

@bors r=@flip1995

dswij avatar Aug 28 '22 07:08 dswij

:pushpin: Commit b07d72b69eac4f37081316801fa2979d904bbe13 has been approved by flip1995

It is now in the queue for this repository.

bors avatar Aug 28 '22 07:08 bors

:hourglass: Testing commit b07d72b69eac4f37081316801fa2979d904bbe13 with merge 8d9da4d7c74ca5ba8af1b5aae41b884fadc1cafa...

bors avatar Aug 28 '22 07:08 bors

:sunny: Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test Approved by: flip1995 Pushing 8d9da4d7c74ca5ba8af1b5aae41b884fadc1cafa to master...

bors avatar Aug 28 '22 07:08 bors