]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #19899 : japaric/rust/unops-by-value, r=nikomatsakis
authorbors <bors@rust-lang.org>
Fri, 19 Dec 2014 06:12:01 +0000 (06:12 +0000)
committerbors <bors@rust-lang.org>
Fri, 19 Dec 2014 06:12:01 +0000 (06:12 +0000)
- 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


Trivial merge