Skip to content

fix potential unsoundness in retain#229

Merged
sunshowers merged 1 commit intomainfrom
sunshowers/spr/fix-potential-unsoundness-in-retain
Nov 22, 2025
Merged

fix potential unsoundness in retain#229
sunshowers merged 1 commit intomainfrom
sunshowers/spr/fix-potential-unsoundness-in-retain

Conversation

@sunshowers
Copy link
Collaborator

Realized that both item and items derived from the same &mut, which meant that they were susceptible to potential unsoundness. Fixing this is just a matter of rearranging code so that items and item are awoken in separate blocks.

This wasn't flagged by miri, so it's possible it was fine -- but we should fix it anyway.

Created using spr 1.3.6-beta.1
@sunshowers sunshowers merged commit 00cdc9a into main Nov 22, 2025
33 checks passed
@sunshowers sunshowers deleted the sunshowers/spr/fix-potential-unsoundness-in-retain branch November 22, 2025 18:26
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