-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
[Merged by Bors] - Panic on dropping NonSend in non-origin thread. #6534
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
Closed
Closed
Changes from all commits
Commits
Show all changes
57 commits
Select commit
Hold shift + click to select a range
bbb7e85
Abort on dropping NonSend in non-origin thread.
james7132 0f4b73d
Fix safety comments
james7132 e83e8e3
Invert is_send
james7132 e46ec0c
Factor out drop-abort
james7132 0898a54
Fix access, replace MainThreadValidator
james7132 e4d61c1
Update docs
james7132 944b83c
Switch to always panic, use ManuallyDrop
james7132 9b712df
Formatting
james7132 776ffaf
Merge branch 'main' into abort-on-nonsend-drop
james7132 ba27136
Split out into NonSendResources
james7132 c3708d4
Cleanup docs and type definitions
james7132 16ae491
Fix CI
james7132 cc4c611
Merge branch 'main' into abort-on-nonsend-drop
james7132 1a09486
Update safety docs.
james7132 f935aa2
Actually fix CI
james7132 f4281e6
Small cleanup
james7132 1692da8
Fix WorldCell's use of NonSend
james7132 2b11ea3
Fix bevy_window
james7132 638e95c
Use const generics to split on Send/!Send
james7132 c37f26e
Use const generics instead of duplicating code
james7132 ee5de65
Use the right branch
james7132 d195cb6
Add panic sections to World's API docs
james7132 93334a0
Apply suggestions from code review
james7132 8f72292
Remove non_send_scope
james7132 b3fffd9
Split insert_non_send_by_id from insert_resource_by_id
james7132 54e5a50
Fix safety comment and tests
james7132 5f6e91b
Exhaustively decompose Storages in check_change_ticks
james7132 cfb8173
Remove spurious is_send in docs
james7132 5900696
Update safety docs on initialize_resource_internal
james7132 95e575f
Check that Send resources have correct metadata on initialization
james7132 2bff28c
Formatting
james7132 6af4c4e
Undo changes to BlobVec, how the hell did this get in here
james7132 e056626
Fix docs link
james7132 58bcb66
Apply suggestions from code review
james7132 9db8041
Stronger assert
james7132 d713d84
Fix CI
james7132 314a86e
Apply suggestions from code review
james7132 e06677a
Small cleanup
james7132 de05d57
Update crates/bevy_ecs/src/world/mod.rs
james7132 b4d6303
Merge branch 'main' into abort-on-nonsend-drop
james7132 a9895c0
Merge branch 'abort-on-nonsend-drop' of github.com:james7132/bevy int…
james7132 db4c6d7
Apply suggestions from code review
james7132 7578306
Merge branch 'main' into abort-on-nonsend-drop
james7132 5e182fc
Move std::thread::panicking check to Drop impl
james7132 263ed85
Update safety comment about validate_access in Drop
james7132 e4a0a9a
Add the missing get_non_send_by_id APIs
james7132 5be8450
Formatting
james7132 587ea78
Add test for distinct storage and missing panic comments
james7132 68de55f
Make the safety comments on _by_id APIs more accurate
james7132 4e8412f
Reword panic docs.
james7132 ebe33dd
Merge branch 'main' into abort-on-nonsend-drop
james7132 87c88ab
Fix CI
james7132 6d39cd5
Merge branch 'main' into abort-on-nonsend-drop
james7132 8b8a735
Revert changes with NonSendMarker
james7132 6c8e988
Merge branch 'main' into abort-on-nonsend-drop
james7132 2c5be6d
Formatting
james7132 b236f9d
Merge branch 'main' into abort-on-nonsend-drop
james7132 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.