]> git.lizzy.rs Git - rust.git/commit
add feature gate for managed boxes
authorDaniel Micay <danielmicay@gmail.com>
Fri, 18 Oct 2013 05:14:47 +0000 (01:14 -0400)
committerDaniel Micay <danielmicay@gmail.com>
Tue, 22 Oct 2013 17:47:08 +0000 (13:47 -0400)
commit38c620e75829b2eb09417479aa8c1e2dd69c8d7e
tree88c400a1fd269df8181c608c68779f43287e6d15
parentcd8c7cf61239d4f23868b8765207026f602a79db
add feature gate for managed boxes

I'll flip this on after doing a snapshot. This syntax may or may not
stay around, and managed boxes are currently not very useful. They have
the same overall performance characteristics as `std::rc::Rc`, but are
significantly slower, allocate larger boxes and hold onto the memory
beyond when it is needed due to lacking move semantics.

There are currently two useful aspects of the type:

* the dereference sugar, which we should implement for `Rc`
* the annihilator freeing cycles at the end of the task
src/librustc/front/feature_gate.rs