Encountered spurious Does not need to be mutable
warning
#88125
Labels
A-async-await
Area: Async & Await
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-bug
Category: This is a bug.
I had the following function in my code:
Getting rid of the
mut
on the second line and making thecmd
argument mutable instead resulted in a "Warning: 'cmd' does not need to be mutable" message. Getting rid of themut
entirely caused the program to fail to compile due to the mutable references.I've not gotten a simpler reproducer to behave this way in isolation.
The text was updated successfully, but these errors were encountered: