A first look at Rust in the 6.1 kernel
A first look at Rust in the 6.1 kernel
Posted Oct 14, 2022 16:58 UTC (Fri) by NYKevin (subscriber, #129325)In reply to: A first look at Rust in the 6.1 kernel by rsidd
Parent article: A first look at Rust in the 6.1 kernel
In general (not specific to the kernel), that is never supposed to happen. By the time drop() gets called, your object should not be owned by anyone and nobody should have any outstanding references to it, or else the borrow checker has not done its job correctly.
