Skip to content

ml-kem: fix unstable name collision warnings - #393

Merged
tarcieri merged 1 commit into
RustCrypto:masterfrom
EliNaig:fix/ml-kem-truncate-calls
Oct 10, 2026
Merged

tarcieri merged 1 commit into
RustCrypto:masterfrom
EliNaig:fix/ml-kem-truncate-calls

Conversation

@EliNaig

@EliNaig EliNaig commented Oct 10, 2026

Copy link
Copy Markdown
Contributor

This addresses the warnings in #308 by replacing u8::truncate and u16::truncate with Truncate::truncate. It also removes the temporary #[allow(unstable_name_collisions)] attributes added in #320.

The conversions themselves haven't changed. I also tested with integer_widen_truncate enabled on nightly. The original code fails to compile, while the updated code builds and passes all ML-KEM tests.

I haven't addressed the possible Truncate method rename mentioned in #308. Happy to look into that separately if needed.

@tarcieri
tarcieri merged commit 15a56d2 into RustCrypto:master Oct 10, 2026
23 checks passed
@EliNaig
EliNaig deleted the fix/ml-kem-truncate-calls branch October 10, 2026 19:30
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.

2 participants