We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7cb2aa2 + f40d5b1 commit f60d937Copy full SHA for f60d937
src/libstd/gc.rs
@@ -16,6 +16,8 @@ collector is task-local so `Gc<T>` is not sendable.
16
17
*/
18
19
+#[allow(experimental)];
20
+
21
use kinds::Send;
22
use clone::{Clone, DeepClone};
23
use managed;
@@ -24,6 +26,9 @@ use managed;
24
26
#[lang="gc"]
25
27
#[cfg(not(test))]
28
#[no_send]
29
+#[experimental = "Gc is currently based on reference-counting and will not collect cycles until \
30
+ task annihilation. For now, cycles need to be broken manually by using `Rc<T>` \
31
+ with a non-owning `Weak<T>` pointer. A tracing garbage collector is planned."]
32
pub struct Gc<T> {
33
priv ptr: @T
34
}
0 commit comments