]> git.lizzy.rs Git - rust.git/commit
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)
commit6bdce25e155d846bb9252fa4a18baef7e74cf8bf
tree80099a51ee183950cfa5661299e8dfcdeafd20c0
parent840de072085df360733c48396224e9966e2dc72c
parent9b5de39c25b9b19ffcff3d519821b72a31d39d6c
auto merge of #19899 : japaric/rust/unops-by-value, r=nikomatsakis

- 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