Re: [PATCH v5 6/6] rust_binder: use bitmap for allocation of handles

From: Miguel Ojeda

Date: Thu Nov 13 2025 - 04:21:32 EST


On Thu, Nov 13, 2025 at 10:14 AM Alice Ryhl <aliceryhl@xxxxxxxxxx> wrote:
>
> I was thinking of warn_on!. There is already a pr_err call.

I see -- if you end up not adding the `warn_on!`, then please add the
`debug_assert!` instead.

That should help and it also makes it even more clear that it is
something that should never ever happen.

Cheers,
Miguel