1

Consider mutations as borrows in generator drop tracking by eholk · Pull Request...

 2 years ago
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.
neoserver,ios ssh client

Copy link

Contributor

@eholk eholk commented 18 days ago

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.

r? @nikomatsakis

tema3210, guswynn, and GrayJack reacted with heart emoji

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK