You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
probably not, but it requires some gray matter wrangling. For this to be doable in a reasonable matter, we likely need to implement it on MIR and use dataflow to track mutable references.
Idea: Add a lint for unneeded mutable borrows when an immutable borrow suffices:
This lint could also catch an unneeded
ref mut
when a plainref
suffices:cc @oli-obk
The text was updated successfully, but these errors were encountered: