clippy::useless_format
slices {name}
to am.to_string()
#9234
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
Summary
Fun with off-by-ones.
cc @compiler-errors didn't you just fix something similar to this in rustc or am I imagining things
Reproducer
I tried this code:
I expected to see this happen:
Instead, this happened:
Note the suggestions: they've mangled the name of the bindings by slicing off the first and last character.
Version
Additional Labels
@rustbot label +I-suggestion-causes-error
The text was updated successfully, but these errors were encountered: