Re:Date bug in Rust-based coreutils affects Ubuntu 25.10 aut...
by cesarb on Friday October 24, 2025 @08:35AM
(#45693988)
> but that part of the description doesn't catch how objects are automatically freed once the last reference to them (the owning one) is dropped.
You're confusing the borrow checker with RAII.
Dropping the last reference to an object does nothing (and even the exclusive &mut is not an "owning" reference). Dropping the object itself is what automatically frees it. See also Box::leak.
Re:Date bug in Rust-based coreutils affects Ubuntu 25.10 aut...
by gpm on Friday October 24, 2025 @11:25AM
(#45695617)
No I'm rather explicitly considering the joint behavior or the borrow checker and RAII.
With only RAII you don't get the last reference part.
Yes, there are exceptions, it's a roughly correct analogy not a precise description.
Meanwhile my description doesn't fully capture how it guarantees unique access for writing, while yours does.