[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <D93UDYZH7A8F.1FG8EIW013NKJ@nvidia.com>
Date: Fri, 11 Apr 2025 22:26:23 +0900
From: "Alexandre Courbot" <acourbot@...dia.com>
To: "Danilo Krummrich" <dakr@...nel.org>
Cc: "Miguel Ojeda" <ojeda@...nel.org>, "Alex Gaynor"
<alex.gaynor@...il.com>, "Boqun Feng" <boqun.feng@...il.com>, "Gary Guo"
<gary@...yguo.net>, Björn Roy Baron
<bjorn3_gh@...tonmail.com>, "Benno Lossin" <benno.lossin@...ton.me>,
"Andreas Hindborg" <a.hindborg@...nel.org>, "Alice Ryhl"
<aliceryhl@...gle.com>, "Trevor Gross" <tmgross@...ch.edu>,
<rust-for-linux@...r.kernel.org>, <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v2] rust: alloc: allow coercion from `Box<T>` to
`Box<dyn U>` if T implements U
On Fri Apr 11, 2025 at 10:10 PM JST, Danilo Krummrich wrote:
> On Fri, Apr 11, 2025 at 09:07:26PM +0900, Alexandre Courbot wrote:
>> This enables the creation of trait objects backed by a Box, similarly to
>> what can be done with the standard library.
>>
>> Suggested-by: Benno Lossin <benno.lossin@...ton.me>
>> Signed-off-by: Alexandre Courbot <acourbot@...dia.com>
>
> I assume you have a specific use-case in nova-core for this? For this cycle, can
> you get away without having this in nova-core?
That's correct, and our next nova-core iteration will likely depend on
this to provide some basic HAL. If this cannot make it for this cycle, I
guess I can always use Arc temporarily.
Powered by blists - more mailing lists