Skip to content

Specialize Clone impl for Box to use Crucible's allocator#247

Merged
RyanGlScott merged 1 commit intomasterfrom
T245-box-clone-patch
Feb 27, 2026
Merged

Specialize Clone impl for Box to use Crucible's allocator#247
RyanGlScott merged 1 commit intomasterfrom
T245-box-clone-patch

Conversation

@RyanGlScott
Copy link
Contributor

Fixes #245.

@RyanGlScott RyanGlScott self-assigned this Feb 26, 2026
@RyanGlScott RyanGlScott added the standard libraries Issues involving mir-json's modified versions of the Rust standard libraries label Feb 26, 2026
Copy link
Collaborator

@spernsteiner spernsteiner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was a bit nervous seeing specialization here, since I know it still has major unsoundness, but I checked the alloc/src/lib.rs and apparently it's only using feature(min_specialization), which is described as "A minimal, sound subset of specialization intended to be used by the standard library until the soundness issues with specialization are fixed." So this should be fine.

@RyanGlScott RyanGlScott merged commit 4c7a424 into master Feb 27, 2026
5 checks passed
@RyanGlScott RyanGlScott deleted the T245-box-clone-patch branch February 27, 2026 22:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

standard libraries Issues involving mir-json's modified versions of the Rust standard libraries

Projects

None yet

Development

Successfully merging this pull request may close these issues.

libs: Patch the Clone impl for Box to be more Crucible-friendly

3 participants