]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #6241 : thestinger/rust/rc, r=pcwalton
authorbors <bors@rust-lang.org>
Tue, 7 May 2013 05:00:37 +0000 (22:00 -0700)
committerbors <bors@rust-lang.org>
Tue, 7 May 2013 05:00:37 +0000 (22:00 -0700)
To provide a reference counted pointer type with deterministic
destruction once managed boxes are switched over to a garbage
collector. Unlike managed boxes, these can be moved instead of just
copied/cloned which is helpful for avoiding reference counts.

Needs #5601 to be fixed in order for safety to be provided without the current ugly workaround of making the pointers contain `Option<@()>` and `Option<@mut ()>` (which are just set to `None`).

@brson: r?

1  2 
src/libstd/std.rc

Simple merge