manual_split_once
suggestion does something different than the original code
#7674
Labels
C-bug
Category: Clippy is not doing the correct thing
Uh oh!
There was an error while loading. Please reload this page.
I tried this code:
clippy correctly emits a warning for the
manual_split_once
lint, however, the suggestion is wrong even though the lint is marked asMachineApplicable
.clippy suggests this replacement:
The suggestion is wrong, and it should be
x.1
at the end. The original code prints "de" while the new one prints "foobar", which you can see in this playground.Meta
Rust version (
rustc -Vv
):The text was updated successfully, but these errors were encountered: