Comment on How One Uncaught Rust Exception Took Out Cloudflare
calcopiritus@lemmy.world 19 hours agoIt’s really hard to do without Rc (or similar) or unsafe.
Comment on How One Uncaught Rust Exception Took Out Cloudflare
calcopiritus@lemmy.world 19 hours agoIt’s really hard to do without Rc (or similar) or unsafe.
Mechanize@feddit.it 18 hours ago
You can leak data in perfectly safe Rust, because it is not a bug per se, an example is by using Box::leak
Preventing memory leaks was never in the intentions of Rust. What it tries to safeguard you from are Memory Safety bugs like the infamous and common double free.