Forcing explicit destructuring
Forcing explicit destructuring
Posted Sep 24, 2024 20:19 UTC (Tue) by farnz (subscriber, #17727)In reply to: Locking by daroc
Parent article: Resources for learning Rust for kernel development
There is some thought being put into whether something like undroppable types would be a useful addition to the language. These would allow Rust for Linux to have a scope guard that must be explicitly destroyed (probably via a fn unlock(self) function), and where dropping them without calling that function is a compile-time error.
