]> git.lizzy.rs Git - rust.git/commit
Fix issues with the Add/AddAssign impls for Cow<str>
authorOliver Middleton <olliemail27@gmail.com>
Fri, 4 Nov 2016 01:07:00 +0000 (01:07 +0000)
committerOliver Middleton <olliemail27@gmail.com>
Fri, 4 Nov 2016 01:07:00 +0000 (01:07 +0000)
commit1e40c80cf527c3b18baaf443f0fc553f35424499
treee8ce2bbd0496d3c27e4bfe4f5896ff0add4d685c
parentacfe959701ce221af37516401726be6d2814cc3f
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.
src/libcollections/borrow.rs
src/libcollectionstest/cow_str.rs
src/libcollectionstest/lib.rs