cargo clippy --fix
fails to fix unneeded return
#9192
Labels
C-bug
Category: Clippy is not doing the correct thing
I-suggestion-causes-error
Issue: The suggestions provided by this Lint cause an ICE/error when applied
Running
cargo clippy --fix
fails to fix the following code:It tries to convert the
return 0;
into an implicit return, but it fails to remove the semicolon on the following line, which causes the error.Full Output
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: