Skip to content

static-cell: Change unsafe Sync impl for ClaimOnceCell - #2667

Merged
jamesmunns merged 1 commit into
masterfrom
james/static-cell-resync
Sep 2, 2026
Merged

static-cell: Change unsafe Sync impl for ClaimOnceCell#2667
jamesmunns merged 1 commit into
masterfrom
james/static-cell-resync

Conversation

@jamesmunns

Copy link
Copy Markdown
Contributor

The previous impl was insufficiently broad, and did not allow for types like core::cell::Cell to be placed in the ClaimOnceCell. I believe the impl was copied from StaticCell, which needs to have a more restrictive implementation as the user is not given a full &mut T.

The previous impl was insufficiently broad, and did not allow for types
like `core::cell::Cell` to be placed in the ClaimOnceCell. I believe
the impl was copied from StaticCell, which needs to have a more restrictive
implementation as the user is not given a full `&mut T`.
@jamesmunns
jamesmunns merged commit 6758cf6 into master Sep 2, 2026
190 checks passed
@jamesmunns
jamesmunns deleted the james/static-cell-resync branch September 2, 2026 15:46
hawkw pushed a commit that referenced this pull request Sep 4, 2026
The previous impl was insufficiently broad, and did not allow for types
like `core::cell::Cell` to be placed in the ClaimOnceCell. I believe the
impl was copied from StaticCell, which needs to have a more restrictive
implementation as the user is not given a full `&mut T`.
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