Re: [PATCH v11 3/5] rust: add bitmap API.

From: Miguel Ojeda
Date: Thu Jun 12 2025 - 05:42:38 EST


On Wed, Jun 11, 2025 at 7:24 PM Burak Emir <bqe@xxxxxxxxxx> wrote:
>
> I could not get kunit to enable RUST_BITMAP_HARDENED - now I understand why!
> Also added the missing test now, exercised the code and observed the
> fault (though [should_panic] does not seem to work).

Yeah, `should_panic` is not supported. Note that `assert!`s maps back
to KUnit in doctests and `#[test]`s, so you should not need it for
assertions anyway, i.e. you should see a KUnit assertion failure like
in C if the assert is not correct.

I hope that helps.

Cheers,
Miguel