Make async futures Unpin if they don't borrow anything across .awaits (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

@jplatte

Description

@jplatte

Am I missing something or could rustc in principle make the anonymous (return) type of async fn and async {} blocks implement Unpin (or maybe it should be "not implement !Unpin") if the body does not contain any borrows across .await points? I couldn't find an existing issue about this.

Metadata

Metadata

Labels

Development

No branches or pull requests

Issue actions