-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[Merged by Bors] - Improve safety for BlobVec::replace_unchecked
#7181
Closed
Closed
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
a341e1a
add `bevy_utils::on_drop`
joseph-gio fd99fc0
simpify ownership for `BlobVec::replace_unchecked`
joseph-gio 6b34972
improve clarity for `BlobVec::replace_unchecked`
joseph-gio 0d6fa32
add safety comments to `copy_nonoverlapping`
joseph-gio 2d3e1bf
avoid a `debug_assert`
joseph-gio 27bd505
remove unnecessary parentheses
joseph-gio 542a820
simplify pointer names
joseph-gio f5b9267
'promized' -> 'ensured'
joseph-gio 83bebeb
'data' -> 'value'
joseph-gio 0552eb4
branch the function earlier
joseph-gio 0e97ee0
use consistent bullet points
joseph-gio da86e26
add a comment about alignment
joseph-gio 4f03b28
Apply suggestions from code review
joseph-gio 49a8e18
make a comment more compact
joseph-gio 6cfbeef
add conversions from lifetimed pointers to `NonNull`
joseph-gio 6a1af02
deduplicate pointer code
joseph-gio fd2e89d
add a doctest to `OnDrop`
joseph-gio 0ba22ab
simplify a comment for `OnDrop`
joseph-gio 86aa368
add a comment about a missing safety invariant
joseph-gio 80c6771
modify a slightly inaccurate comment
joseph-gio 5baa237
add a note about unwinding
joseph-gio 0ed0b2a
simplify an unsafe expression
joseph-gio c21fc09
make pointer names more verbose
joseph-gio File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Btw,
bevy_tasks
also has aCallOnDrop
impl which could replaced with this. Not sure if it's worth taking onbevy_utils
as a dependency.