]> git.lizzy.rs Git - rust.git/commit
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)
commitbf748e50017ab7cdb0f703ec9438793226d43a22
tree52fcc968509c2aa4c5ed5c2b7d0e86629d0359dd
parentd2f0235a2c887e425b2c06b8df359b1400b8dd4d
parent3d526d1af369472944b65e23c665a62c3254619d
auto merge of #6241 : thestinger/rust/rc, r=pcwalton

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?
src/libstd/std.rc