add an experimental tag for Gc<T> due to cycles

This type isn't yet very useful since it only pretends cycles won't be
a problem. Anyone using it should be made aware that they're going to
leak.
This commit is contained in:
Daniel Micay 2014-01-14 05:17:19 -05:00
parent 77eeddaa48
commit f40d5b1050

View File

@ -16,6 +16,8 @@
*/
#[allow(experimental)];
use kinds::Send;
use clone::{Clone, DeepClone};
use managed;
@ -24,6 +26,9 @@
#[lang="gc"]
#[cfg(not(test))]
#[no_send]
#[experimental = "Gc is currently based on reference-counting and will not collect cycles until \
task annihilation. For now, cycles need to be broken manually by using `Rc<T>` \
with a non-owning `Weak<T>` pointer. A tracing garbage collector is planned."]
pub struct Gc<T> {
priv ptr: @T
}