Re: [PATCH v2 02/12] rust: num: reject Bounded::shr overshifts at build time
From: Danilo Krummrich
Date: Mon Aug 10 2026 - 18:26:34 EST
On Mon Aug 10, 2026 at 3:55 PM CEST, Eliot Courtney wrote:
> Make `shr` reject shifts of at least the type's bit width at build
> time, instead of panicking or masking the shift amount at runtime.
>
> Signed-off-by: Eliot Courtney <ecourtney@xxxxxxxxxx>
> Acked-by: Alexandre Courbot <acourbot@xxxxxxxxxx>
Reviewed-by: Danilo Krummrich <dakr@xxxxxxxxxx>