Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Leverage const_mut_refs #667

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft

[WIP] Leverage const_mut_refs #667

wants to merge 2 commits into from

Conversation

tarcieri
Copy link
Member

@tarcieri tarcieri commented Sep 6, 2024

Replaces macro-based code sharing between the stack-allocated and heap-allocated *Uint types with const fn using const_mut_refs.

Stabilization of this feature is (hopefully) imminent and the PR to do so is in FCP: rust-lang/rust#129195

I will keep this a draft until the feature has actually been stabilized and made it into a stable Rust release.

Edit: stabilization is currently slated for the 1.83.0 milestone, which is set to be released on November 28th, 2024.

tarcieri added a commit that referenced this pull request Sep 19, 2024
This version leverages the new `core::error::Error` stabilization.

We plan on bumping MSRV to 1.83 before a final release to get the
`const_mut_refs` stabilization (#667), so this is something of an
interim bump.
tarcieri added a commit that referenced this pull request Sep 19, 2024
This version leverages the new `core::error::Error` stabilization.

We plan on bumping MSRV to 1.83 before a final release to get the
`const_mut_refs` stabilization (#667), so this is something of an
interim bump.
tarcieri added a commit that referenced this pull request Sep 19, 2024
This version leverages the new `core::error::Error` stabilization.

We plan on bumping MSRV to 1.83 before a final release to get the
`const_mut_refs` stabilization (#667), so this is something of an
interim bump.
@tarcieri tarcieri force-pushed the const_mut_refs branch 3 times, most recently from 078c49f to c0ebcb2 Compare October 8, 2024 00:58
Replaces macro-based code sharing between the stack-allocated and
heap-allocated `*Uint` types with `const fn` using `const_mut_refs`.
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