The 5.7 kernel is out
The 5.7 kernel is out
Posted Jun 2, 2020 15:44 UTC (Tue) by mathstuf (subscriber, #69389)In reply to: The 5.7 kernel is out by marcthe12
Parent article: The 5.7 kernel is out
What is it about RAII that would not be allowed? Hiding the explicit dtor call? Not using the STL (or using Rust's `no_std`, maybe even `no_core`) should avoid most heavy dtor calls. You're basically left with the custom ones coded in the project at hand. Then your review is "make sure dtors are cheap" rather than trying to eyeball that the right function call is on every (relevant) exit path. That is, IME, *much* more likely to bitrot over time as other codepaths arise around the relevant codes than someone making a dtor heavier accidentally.
