]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #37574 - ollie27:cow_add, r=alexcrichton
authorAlex Crichton <alex@alexcrichton.com>
Fri, 4 Nov 2016 23:49:31 +0000 (16:49 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Sat, 5 Nov 2016 17:50:24 +0000 (10:50 -0700)
Fix issues with the Add/AddAssign impls for Cow<str>

* Correct the stability attributes.
* Make Add and AddAssign actually behave the same.
* Use String::with_capacity when allocating a new string.
* Fix the tests.


Trivial merge