Uh oh!
There was an error while loading. Please reload this page.
Overloaded augmented assignments - #28345
Conversation
bors
commented
Sep 14, 2015
☔ The latest upstream changes (presumably #28358) made this pull request unmergeable. Please resolve the merge conflicts. |
There was a problem hiding this comment.
Nit: can we newtype this bool? I think I prefer something like:
struct IsAssign(bool)
and then in the call foo(..., IsAssign(true)), though IsAssign::Yes is also ok.
nikomatsakis
commented
Sep 14, 2015
This looks good. r+ modulo nits -- can you also add a test that you can't implement Also: I think it may be worth waiting to land this until the beta is released, just in case it introduces accidental breakage. |
japaric
commented
Sep 17, 2015
@nikomatsakis I've addressed all your comments (I think)
I did try using the same feature name for the language feature and for the traits, but it didn't work. What I observed is that when I added
Sounds good to me |
bors
commented
Sep 18, 2015
☔ The latest upstream changes (presumably #28336) made this pull request unmergeable. Please resolve the merge conflicts. |
nikomatsakis
commented
Sep 18, 2015
@japaric ok feel free to r=me once rebased |
japaric
commented
Sep 19, 2015
@bors r=nmatsakis |
bors
commented
Sep 19, 2015
📌 Commit f5569ec has been approved by |
bors
commented
Sep 19, 2015
⌛ Testing commit f5569ec with merge c61bf60... |
bors
commented
Sep 19, 2015
💔 Test failed - auto-linux-64-opt |
bluss
commented
Sep 19, 2015
@bors retry |
bors
commented
Sep 19, 2015
⌛ Testing commit f5569ec with merge 295d51f... |
bors
commented
Sep 19, 2015
💔 Test failed - auto-linux-64-opt |
alexcrichton
commented
Sep 19, 2015
@bors: retry On Sat, Sep 19, 2015 at 4:08 AM, bors notifications@github.com wrote:
|
Implements overload-able augmented/compound assignments, like `a += b` via the `AddAssign` trait, as specified in RFC [953] [953]: https://github.com/rust-lang/rfcs/blob/master/text/0953-op-assign.md r? @nikomatsakis
Implements overload-able augmented/compound assignments, like
a += bvia theAddAssigntrait, as specified in RFC 953r? @nikomatsakis