You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A type like MutexArc could be annotated with an attribute enabling a cycle detection lint:
#[cycle_check]structMutexArc<T>{ ... }
The lint would do a walk of the type and check for a reference to itself. This isn't good enough for an immutable type like Rc because it only needs to warn if the type can contain itself andT is non-Freeze, but that's easy enough to solve. There's also the issue of how Rc cycles may interact with the current managed pointer annihilator and a future garbage collector.
The text was updated successfully, but these errors were encountered:
A type like
MutexArc
could be annotated with an attribute enabling a cycle detection lint:The lint would do a walk of the type and check for a reference to itself. This isn't good enough for an immutable type like
Rc
because it only needs to warn if the type can contain itself andT
is non-Freeze, but that's easy enough to solve. There's also the issue of howRc
cycles may interact with the current managed pointer annihilator and a future garbage collector.The text was updated successfully, but these errors were encountered: