commit | 75507c8720d520c80531bd42768d153ced05448e | [log] [tgz] |
---|---|---|
author | Lyude Paul <lyude@redhat.com> | Wed Aug 20 16:26:43 2025 -0400 |
committer | Andreas Hindborg <a.hindborg@kernel.org> | Tue Aug 26 11:17:06 2025 +0200 |
tree | 5de0b49f6bb47780ad77035ded42b72b750051b4 | |
parent | 8fd59ac8a6d0bd36a33a9980bed7a9fd844bac0c [diff] |
LIST: [PATCH v3 1/2] rust: time: Implement Add<Delta>/Sub<Delta> for Instant 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@redhat.com> Link: https://lore.kernel.org/r/20250820203704.731588-2-lyude@redhat.com