Autofix explicit_counter_loop
(MaybeIncorrect) produces invalid rust code.
#13572
Labels
I-suggestion-causes-error
Issue: The suggestions provided by this Lint cause an ICE/error when applied
Description
Applying fix on this situation:
Produces the following:
I'm not sure whether this contradicts with the "should result in valid Rust code" part of the
MaybeIncorrect
marker for this lint (?), but possibly the orginali
variable should be removed by this autofix?Version
rustc 1.84.0-nightly (da935398d 2024-10-19)
binary: rustc
commit-hash: da935398d582344c5b7689bd6632d8ec01b0c988
commit-date: 2024-10-19
host: x86_64-unknown-linux-gnu
release: 1.84.0-nightly
LLVM version: 19.1.1
Additional Labels
No response
The text was updated successfully, but these errors were encountered: