Very much no. Cycles are an extremely important feature of reference counted objects, as long as you tear them down properly. There’s no reason to try to forbid them.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Preventing `Rc` leaks when it references the stack | 2 | 2907 | May 2, 2015 | |
| Idea for making Rc more leak-safe | 2 | 1938 | April 30, 2015 | |
| [Feature Request] Add #[leaky] attribute | 1 | 733 | October 22, 2021 | |
|
Rc is unsafe [mostly on 32-bit targets] due to overflow
|
71 | 10725 | July 23, 2015 | |
| Idea: Leak auto trait and Drop call guarantees | 12 | 2134 | December 9, 2020 |