1
Consider mutations as borrows in generator drop tracking by eholk · Pull Request...
source link: https://github.com/rust-lang/rust/pull/94068
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
This is needed to match MIR more conservative approximation of any borrowed value being live across a suspend point (See #94067). This change considers an expression such as x.y = z
to be a borrow of x
and therefore keeps x
live across suspend points.
tema3210, guswynn, and GrayJack reacted with heart emoji
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK