Re: [PATCH] rust: num: document why Integer is sealed
From: Alexandre Courbot
Date: Sun Sep 06 2026 - 11:25:39 EST
On Sun Sep 6, 2026 at 4:40 PM JST, Younes Akhouayri via B4 Relay wrote:
> From: Younes Akhouayri <git@xxxxxxxxx>
>
> Bounded relies on Integer::BITS and Integer::Signedness accurately
> describing the implementing type to justify unchecked operations.
> The reason external implementations are prohibited is currently recorded
> only in the commit history.
>
> Document this safety requirement on Integer itself.
>
> Suggested-by: Miguel Ojeda <ojeda@xxxxxxxxxx>
> Link: https://lore.kernel.org/all/CANiq72m8kycbfQ1teyne-OtB5d5TsUcX_WW0FCkWB3Ayyg-qWw@xxxxxxxxxxxxxx/
> Signed-off-by: Younes Akhouayri <git@xxxxxxxxx>
Acked-by: Alexandre Courbot <acourbot@xxxxxxxxxx>