]> git.lizzy.rs Git - rust.git/commit
rc: Use ~T for allocation
authorblake2-ppc <blake2-ppc>
Wed, 24 Jul 2013 12:11:49 +0000 (14:11 +0200)
committerDaniel Micay <danielmicay@gmail.com>
Wed, 24 Jul 2013 14:22:55 +0000 (10:22 -0400)
commit8f86fa3b31ec80020c30b70d1d04987481f89e4c
tree9db6ffc8e800966abb19ad1bf59899a0315214a1
parent4a2d22bdb1292fe2c4b415671def7959adf36920
rc: Use ~T for allocation

Simplify Rc<T>/RcMut<T> by using ~T when allocating a reference counted
box.
src/libextra/rc.rs
src/test/compile-fail/rcmut-not-const-and-not-owned.rs