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
currently if the closure passed to with_ref/with_mut_ref fails, the cell will not put back the value that was taken from it. Is this desired? Or should it put it back?
The text was updated successfully, but these errors were encountered:
I'm inclined to agree. The possible argument against is analogous to the reason for poisoning in mutexARC and RWARC -- that failure somehow means the data is in a logically-invalid (though typechecker-valid) state. The idea of poisoning arcs has shrunk on me too, though.
Fix `needless_collect`'s tendency to suggest code requiring multiple mutable borrows of the same value.
Fixes error specified in rust-lang#7975.
changelog: [`needless_collect`] no longer suggests removal of `collect` when removal would create code requiring mutably borrowing a value multiple times.
currently if the closure passed to with_ref/with_mut_ref fails, the cell will not put back the value that was taken from it. Is this desired? Or should it put it back?
The text was updated successfully, but these errors were encountered: