Skip to content

Conversation

japaric
Copy link
Contributor

@japaric japaric commented Dec 16, 2014

  • The following operator traits now take their argument by value: Neg, Not. This breaks all existing implementations of these traits.
  • The unary operation OP a now "desugars" to OpTrait::op_method(a) and consumes its argument.

[breaking-change]


r? @nikomatsakis This PR is very similar to the binops-by-value PR
cc @aturon

@aturon
Copy link
Contributor

aturon commented Dec 16, 2014

Lib changes LGTM.

@nikomatsakis nikomatsakis self-assigned this Dec 16, 2014
@nikomatsakis
Copy link
Contributor

r=me modulo the nit regarding the typeck module

@japaric
Copy link
Contributor Author

japaric commented Dec 17, 2014

re-r? @nikomatsakis

bors added a commit that referenced this pull request Dec 19, 2014
- The following operator traits now take their argument by value: `Neg`, `Not`. This breaks all existing implementations of these traits.

- The unary operation `OP a` now "desugars" to `OpTrait::op_method(a)` and consumes its argument.

[breaking-change]

---

r? @nikomatsakis This PR is very similar to the binops-by-value PR
cc @aturon
@bors bors merged commit 9b5de39 into rust-lang:master Dec 19, 2014
@japaric japaric deleted the unops-by-value branch December 20, 2014 12:30
lnicola pushed a commit to lnicola/rust that referenced this pull request Jun 2, 2025
Account for `Generate` actions when filtering the allowed ones
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.

4 participants