rust-clippy
rust-clippy copied to clipboard
Ignore `match_like_matches_macro` when there is comment
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.
r? @flip1995
(rust-highfive has picked a reviewer for you, use r? to override)
Thanks for the review!
@bors r=@flip1995
:pushpin: Commit b07d72b69eac4f37081316801fa2979d904bbe13 has been approved by flip1995
It is now in the queue for this repository.
:hourglass: Testing commit b07d72b69eac4f37081316801fa2979d904bbe13 with merge 8d9da4d7c74ca5ba8af1b5aae41b884fadc1cafa...
:sunny: Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test Approved by: flip1995 Pushing 8d9da4d7c74ca5ba8af1b5aae41b884fadc1cafa to master...