mirror of
https://github.com/torvalds/linux.git
synced 2024-11-14 16:12:02 +00:00
1d24eb2d53
We discovered that the current design of `borrow_mut` is problematic.
This patch removes it until a better solution can be found.
Specifically, the current design gives you access to a `&mut T`, which
lets you change where the `ForeignOwnable` points (e.g., with
`core::mem::swap`). No upcoming user of this API intended to make that
possible, making all of them unsound.
Signed-off-by: Alice Ryhl <aliceryhl@google.com>
Reviewed-by: Gary Guo <gary@garyguo.net>
Reviewed-by: Benno Lossin <benno.lossin@proton.me>
Reviewed-by: Martin Rodriguez Reboredo <yakoyoku@gmail.com>
Fixes:
|
||
---|---|---|
.. | ||
arc | ||
lock | ||
arc.rs | ||
condvar.rs | ||
lock.rs | ||
locked_by.rs |