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

Replace `expr_visitor` with `for_each_expr`

Open Jarcho opened this issue 2 years ago • 8 comments

This is a minor change which uses ControlFlow rather than a boolean. This also runs the visitor rather than returning the visitor, which results in a small readability win as well.

changelog: None

Jarcho avatar Apr 29 '22 20:04 Jarcho

r? @giraffate

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

rust-highfive avatar Apr 29 '22 20:04 rust-highfive

:umbrella: The latest upstream changes (presumably #8779) made this pull request unmergeable. Please resolve the merge conflicts.

bors avatar May 03 '22 21:05 bors

Great. The compiler broke... Looks like rust-lang/rust#99866.

Jarcho avatar Aug 20 '22 01:08 Jarcho

LGTM. Will merge after the next sync.

flip1995 avatar Aug 20 '22 14:08 flip1995

:umbrella: The latest upstream changes (presumably #9447) made this pull request unmergeable. Please resolve the merge conflicts.

bors avatar Sep 08 '22 19:09 bors

Huh. Forgot about it. Can you rebase and then r+ yourself, if CI passes?

flip1995 avatar Sep 09 '22 07:09 flip1995

Looks like this is still broken. rust-lang/rust#101410 is a possible fix.

Jarcho avatar Sep 10 '22 23:09 Jarcho

:umbrella: The latest upstream changes (presumably #9458) made this pull request unmergeable. Please resolve the merge conflicts.

bors avatar Sep 12 '22 00:09 bors

Narrowed the issue down to something with let-chains mir opt levels. Pretty good match with rust-lang/#99852. Just added a workaround until the rustc bug is fixed.

@bors r+

Jarcho avatar Oct 03 '22 00:10 Jarcho

:pushpin: Commit 26bb36636ca9d71958055e05053946d22fcfbdbb has been approved by Jarcho

It is now in the queue for this repository.

bors avatar Oct 03 '22 00:10 bors

:hourglass: Testing commit 26bb36636ca9d71958055e05053946d22fcfbdbb with merge 2be6c4ae5b075028a6c61ba75daaf22fb7921c85...

bors avatar Oct 03 '22 00:10 bors

:sunny: Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test Approved by: Jarcho Pushing 2be6c4ae5b075028a6c61ba75daaf22fb7921c85 to master...

bors avatar Oct 03 '22 00:10 bors