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 the references states that in *x = v, the value contained in x is first dropped before being replaced by v. If that where strictly the case, if the drop panics and that panic is caught, we could then observe an uninitialized x.
Indeed in practice, the generated clean up code moves v into x when unwinding, but this should likely be documented.
The text was updated successfully, but these errors were encountered:
Currently the references states that in
*x = v
, the value contained in x is first dropped before being replaced by v. If that where strictly the case, if the drop panics and that panic is caught, we could then observe an uninitialized x.Indeed in practice, the generated clean up code moves v into x when unwinding, but this should likely be documented.
The text was updated successfully, but these errors were encountered: