Re: [PATCH 1/2] rust: alloc: replace `Vec::set_len` with `inc_len`
From: Benno Lossin
Date: Mon Mar 17 2025 - 10:45:51 EST
On Mon Mar 17, 2025 at 11:23 AM CET, Miguel Ojeda wrote:
> On Mon, Mar 17, 2025 at 10:58 AM Benno Lossin <benno.lossin@xxxxxxxxx> wrote:
>>
>> What if this overflows? Do we always have overflow debugging on when
>> debug assertions are enabled? If yes, then this is fine.
>
> No, they are independent settings.
I see, then this needs to be `checked_add` or some avoid the overflow
some different way.
---
Cheers,
Benno