Skip to content

Conversation

@joseph-gio
Copy link
Member

Objective

The safety documentation for Ptr::assert_unique is incomplete. Currently it only mentions the existence of other Ptr instances, but it should also mention that the underlying data must be mutable and that there cannot be active references to it.

@joseph-gio joseph-gio added P-Unsound A bug that results in undefined compiler behavior A-Pointers Relating to Bevy pointer abstractions C-Docs An addition or correction to our documentation labels Jan 16, 2025
@alice-i-cecile alice-i-cecile added S-Needs-Review Needs reviewer attention (from anyone!) to move forward D-Straightforward Simple bug fixes and API improvements, docs, test and examples D-Unsafe Touches with unsafe code in some way labels Jan 16, 2025
@alice-i-cecile alice-i-cecile added this to the 0.16 milestone Jan 16, 2025
@alice-i-cecile alice-i-cecile added this pull request to the merge queue Jan 16, 2025
@alice-i-cecile alice-i-cecile added S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it and removed S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Jan 16, 2025
Merged via the queue into bevyengine:main with commit 77fd7bf Jan 16, 2025
32 checks passed
mrchantey pushed a commit to mrchantey/bevy that referenced this pull request Feb 4, 2025
# Objective

The safety documentation for `Ptr::assert_unique` is incomplete.
Currently it only mentions the existence of other `Ptr` instances, but
it should also mention that the underlying data must be mutable and that
there cannot be active references to it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Pointers Relating to Bevy pointer abstractions C-Docs An addition or correction to our documentation D-Straightforward Simple bug fixes and API improvements, docs, test and examples D-Unsafe Touches with unsafe code in some way P-Unsound A bug that results in undefined compiler behavior S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants