Re: [PATCH 1/2] rust: io: document const-offset requirement for infallible accessors
From: Alexandre Courbot
Date: Thu Jul 16 2026 - 17:14:36 EST
On Thu Jul 16, 2026 at 7:25 AM PDT, Gary Guo wrote:
> From: Gary Guo <gary@xxxxxxxxxxx>
>
> Due to the usage of `build_assert!` for address validity checking, these
> accessors want constant offsets. Non-constant offsets can work but it
> depend on compiler optimization levels, so it should be avoided.
>
> Signed-off-by: Gary Guo <gary@xxxxxxxxxxx>
Reviewed-by: Alexandre Courbot <acourbot@xxxxxxxxxx>
Do we want to say something similar for read/write?