Re: [PATCH v2] rust: alloc: allow coercion from `Box<T>` to `Box<dyn U>` if T implements U

From: Alexandre Courbot
Date: Fri Apr 11 2025 - 09:29:50 EST


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@xxxxxxxxx>
>> Signed-off-by: Alexandre Courbot <acourbot@xxxxxxxxxx>
>
> 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.