]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #14522 : aturon/rust/make_unique, r=alexcrichton,alexcrichton,me
authorbors <bors@rust-lang.org>
Fri, 30 May 2014 11:21:41 +0000 (04:21 -0700)
committerbors <bors@rust-lang.org>
Fri, 30 May 2014 11:21:41 +0000 (04:21 -0700)
This patch makes `Arc::make_unique` examine the number of weak
references as well as strong references, which is required for safety.

It also adds a `make_unique` method to the `Rc` type for consistency.

Closes #14521.


Trivial merge