Re: [PATCH] rust: debugfs: Implement Reader for Mutex<T> only when T is Unpin
From: Danilo Krummrich
Date: Wed Oct 22 2025 - 05:10:08 EST
On 10/22/25 11:07 AM, Danilo Krummrich wrote:
> On 10/22/25 5:42 AM, Boqun Feng wrote:
>> Since we are going to make `Mutex<T>` structurally pin the data (i.e.
>> `T`), therefore `.lock()` function only returns a `Guard` that can
>> dereference a mutable reference to `T` if only `T` is `Unpin`, therefore
>> restrict the impl `Reader` block of `Mutex<T>` to that.
>>
>> Signed-off-by: Boqun Feng <boqun.feng@xxxxxxxxx>
>
> I assume this can go through the driver-core tree, since it's only about a
> conflict in linux-next?
Sorry, I confused this, obviously your tree is broken without this change,
please feel free to take it.
Acked-by: Danilo Krummrich <dakr@xxxxxxxxxx>