Skip to content

add Movability to Generator #685

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 11, 2021
Merged

Conversation

basil-cow
Copy link
Contributor

pretty straightforward

closes #618
cc #363

Copy link
Member

@jackh726 jackh726 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is correct, but I'm not 100% sure of the rules around this.

Can you update the traits table in the book?

r=me with that

@basil-cow basil-cow force-pushed the generator_movability branch from 9243876 to cef3c78 Compare February 10, 2021 21:43
@@ -44,7 +44,7 @@ Some common examples of auto traits are `Send` and `Sync`.
| slices | ⚬ | ⚬ | ⚬ | ✅ | ⚬ | ⚬ | ⚬ | ⚬ | ⚬ | ✅ |
| arrays | ✅ | ✅ | ✅ | ❌ | ⚬ | ⚬ | ⚬ | ⚬ | ⚬ | ✅ |
| closures | ✅ | ✅ | ✅ | ⚬ | ⚬ | ⚬ | ✅ | ⚬ | ⚬ | ✅ |
| generators | ⚬ | ⚬ | ❌ | ⚬ | ⚬ | ⚬ | ⚬ | | ❌ | ❌ |
| generators | ⚬ | ⚬ | ❌ | ⚬ | ⚬ | ⚬ | ⚬ | | ❌ | ❌ |
Copy link
Member

@jackh726 jackh726 Feb 11, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't this also implement auto trait handling for generators?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was already implemented but I guess it's complete now

@basil-cow basil-cow force-pushed the generator_movability branch from cef3c78 to 0b8e2be Compare February 11, 2021 21:47
@jackh726
Copy link
Member

@bors r+

@bors
Copy link
Contributor

bors commented Feb 11, 2021

📌 Commit 0b8e2be has been approved by jackh726

@bors
Copy link
Contributor

bors commented Feb 11, 2021

⌛ Testing commit 0b8e2be with merge 6dd9d61...

@bors
Copy link
Contributor

bors commented Feb 11, 2021

☀️ Test successful - checks-actions
Approved by: jackh726
Pushing 6dd9d61 to master...

@bors bors merged commit 6dd9d61 into rust-lang:master Feb 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Generator followup work
3 participants