Re: [PATCH v3 1/2] rust: time: Implement Add<Delta>/Sub<Delta> for Instant
From: FUJITA Tomonori
Date: Tue Aug 26 2025 - 08:23:55 EST
On Wed, 20 Aug 2025 16:26:43 -0400
Lyude Paul <lyude@xxxxxxxxxx> wrote:
> In order to copy the behavior rust currently follows for basic arithmetic
> operations and panic if the result of an addition or subtraction results in
> a value that would violate the invariants of Instant, but only if the
> kernel has overflow checking for rust enabled.
>
> Signed-off-by: Lyude Paul <lyude@xxxxxxxxxx>
Reviewed-by: FUJITA Tomonori <fujita.tomonori@xxxxxxxxx>