The manual says that non-GC cannot point to GC and that Immutable cannot
point to mutable.
Not allowing immutable not point to mutable is easy to understand as it
makes sure that immutable is really immutable and you can for example
copy it to another task.
But why do we restrict that mutable non-GC data cannot point to GC? An
optimization so that the garbage collector only has to look at the GC layer?
Cheers,
Rafael
_______________________________________________
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev