Re: [PATCH 1/2] rust: alloc: replace `Vec::set_len` with `inc_len`
From: Miguel Ojeda
Date: Mon Mar 17 2025 - 06:30:01 EST
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.
> This change seems wrong unless the code was wrong to begin with.
Yeah, even if it is correct, it should definitely be described in the
commit log, because it does look like a functional change.
Cheers,
Miguel