-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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`
JoJoJet fd99fc0
simpify ownership for `BlobVec::replace_unchecked`
JoJoJet 6b34972
improve clarity for `BlobVec::replace_unchecked`
JoJoJet 0d6fa32
add safety comments to `copy_nonoverlapping`
JoJoJet 2d3e1bf
avoid a `debug_assert`
JoJoJet 27bd505
remove unnecessary parentheses
JoJoJet 542a820
simplify pointer names
JoJoJet f5b9267
'promized' -> 'ensured'
JoJoJet 83bebeb
'data' -> 'value'
JoJoJet 0552eb4
branch the function earlier
JoJoJet 0e97ee0
use consistent bullet points
JoJoJet da86e26
add a comment about alignment
JoJoJet 4f03b28
Apply suggestions from code review
JoJoJet 49a8e18
make a comment more compact
JoJoJet 6cfbeef
add conversions from lifetimed pointers to `NonNull`
JoJoJet 6a1af02
deduplicate pointer code
JoJoJet fd2e89d
add a doctest to `OnDrop`
JoJoJet 0ba22ab
simplify a comment for `OnDrop`
JoJoJet 86aa368
add a comment about a missing safety invariant
JoJoJet 80c6771
modify a slightly inaccurate comment
JoJoJet 5baa237
add a note about unwinding
JoJoJet 0ed0b2a
simplify an unsafe expression
JoJoJet c21fc09
make pointer names more verbose
JoJoJet 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.