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 | 3 | 2856 | March 25, 2019 | |
Idea for making Rc more leak-safe | 3 | 1896 | March 25, 2019 | |
[Feature Request] Add #[leaky] attribute | 2 | 710 | January 20, 2022 | |
Rc is unsafe [mostly on 32-bit targets] due to overflow
|
72 | 9980 | March 25, 2019 | |
Idea: Leak auto trait and Drop call guarantees | 13 | 1932 | March 9, 2021 |