Make async futures Unpin
if they don't borrow anything across .await
s (original) (raw)
Navigation Menu
- GitHub Copilot Write better code with AI
- GitHub Models New Manage and compare prompts
- GitHub Advanced Security Find and fix vulnerabilities
- Actions Automate any workflow
- Codespaces Instant dev environments
- Issues Plan and track work
- Code Review Manage code changes
- Discussions Collaborate outside of code
- Code Search Find more, search less
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Description
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