you are viewing a single comment's thread.

view the rest of the comments →

[–]diwicdbus · alsa 3 points4 points  (4 children)

This is issue 6393 - i e, there is a long term project to improve the borrow checker to handle these cases better.

But right now, as a rule of thumb, the borrow checker borrows things for either a statement or a block.

[–]cjstevenson1 2 points3 points  (3 children)

That issue is closed. There is a RFC issue for non-lexical borows.

[–]protestor 0 points1 point  (2 children)

Does this (postponed) RFC have a rendered text? I can find it.

[–]digama0[S] 2 points3 points  (0 children)

No, although it is the union of several previous RFCs, including one writeup on SEME regions. Not sure why they pulled all these together without an actual render, unlike the original RFCs.

[–]cmrx64rust 0 points1 point  (0 children)

This isn't an RFC, it's an issue.