-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Overloaded augmented assignments (a += b
)
#23171
Conversation
r? @brson (rust_highfive has picked a reviewer for you, use r? to override) |
RFC at rust-lang/rfcs#953 |
(If anyone is looking, I've added the |
☔ The latest upstream changes (presumably #23796) made this pull request unmergeable. Please resolve the merge conflicts. |
☔ The latest upstream changes (presumably #25609) made this pull request unmergeable. Please resolve the merge conflicts. |
eabc21c
to
46c7202
Compare
☔ The latest upstream changes (presumably #26351) made this pull request unmergeable. Please resolve the merge conflicts. |
☔ The latest upstream changes (presumably #26575) made this pull request unmergeable. Please resolve the merge conflicts. |
@japaric I'm gonna go ahead and close this PR since it doesn't look like this is going to get through the RFC process anytime soon. Your contributions, as always, are greatly appreciated! |
a += b
a += b
)
Rebased, documented the traits and updated the description of E0368. |
@japaric github seems to refuse to reopen this, might need a new PR? |
Implements overload-able augmented/compound assignments, like
a += b
via theAddAssign
trait, as specified in RFC 953r? @nikomatsakis