Skip to content

Explicitly seal MontyForm#1237

Merged
tarcieri merged 1 commit intomasterfrom
explicitly-seal-montyform
Mar 25, 2026
Merged

Explicitly seal MontyForm#1237
tarcieri merged 1 commit intomasterfrom
explicitly-seal-montyform

Conversation

@tarcieri
Copy link
Copy Markdown
Member

Uses the non-pub sealed::Sealed trait introduced in #1227 to explicitly mark that MontyForm is not intended to be impl'd by downstream crates.

Unlike #1227 this isn't technically a breaking change, because it relies on one of the sealed Unsigned/Integer types also impl'ing UnsignedWithMontyForm which is a bound on the associated MontyForm::Integer type.

Uses the non-`pub` `sealed::Sealed` trait introduced in #1227 to
explicitly mark that `MontyForm` is not intended to be impl'd by
downstream crates.

Unlike #1227 this isn't technically a breaking change, because it relies
on one of the sealed `Unsigned`/`Integer` types also impl'ing
`UnsignedWithMontyForm` which is a bound on the associated
`MontyForm::Integer` type.
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 25, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.70%. Comparing base (dd4ce51) to head (f4e70dc).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1237   +/-   ##
=======================================
  Coverage   90.70%   90.70%           
=======================================
  Files         185      185           
  Lines       21415    21415           
=======================================
  Hits        19424    19424           
  Misses       1991     1991           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@tarcieri tarcieri merged commit 8319f4c into master Mar 25, 2026
31 checks passed
@tarcieri tarcieri deleted the explicitly-seal-montyform branch March 25, 2026 19:03
@tarcieri tarcieri mentioned this pull request Mar 25, 2026
tarcieri added a commit that referenced this pull request Mar 25, 2026
## Added
- `#[inline]` attributes for shift and wrapping arithmetic ops (#1229)
- `MontyForm::{is_zero, is_one}` methods (#1230)
- `Gcd` supertrait bound to `Unsigned`/`Signed` traits (#1231)

## Changed
- Define `Uint` division traits generically (#1232)
- Use generic implementation of bit operations for `Wrapping` (#1235)
- Explicitly seal `MontyForm` (#1237)
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