Skip to content

Make be_pad_into infallible - #715

Merged
tarcieri merged 1 commit into
masterfrom
make-be-pad-into-infallible
Oct 12, 2026
Merged

tarcieri merged 1 commit into
masterfrom
make-be-pad-into-infallible

Conversation

@tarcieri

Copy link
Copy Markdown
Member

Followup to #710 which implements the suggested constant-time improvements from that thread, namely changing this function to be infallible and panicking if its preconditions aren't met, with a constant-time debug_assert! that overflow is not occurring.

Additionally expands test coverage for these cases.

cc @iamnoksio

Followup to #710 which implements the suggested constant-time
improvements from that thread, namely changing this function to be
infallible and panicking if its preconditions aren't met, with a
constant-time `debug_assert!` that overflow is not occurring.

Additionally expands test coverage for these cases.
@tarcieri
tarcieri merged commit 2770a5f into master Oct 12, 2026
12 checks passed
@tarcieri
tarcieri deleted the make-be-pad-into-infallible branch October 12, 2026 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant