Skip to content
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

Relax more Sync bounds on Local #9589

Merged
merged 4 commits into from
Aug 28, 2023
Merged

Conversation

JoJoJet
Copy link
Member

@JoJoJet JoJoJet commented Aug 26, 2023

Objective

#5483 allows for the creation of non-Sync locals. However, it's not actually possible to use these types as there is a Sync bound on the Deref impls.

Solution

Remove the unnecessary bounds.

@alice-i-cecile alice-i-cecile added C-Bug An unexpected or incorrect behavior A-ECS Entities, components, systems, and events labels Aug 26, 2023
@alice-i-cecile alice-i-cecile added the S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it label Aug 26, 2023
@hymm
Copy link
Contributor

hymm commented Aug 26, 2023

could we add a test making a Local with a !Sync?

@alice-i-cecile alice-i-cecile removed the S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it label Aug 27, 2023
@alice-i-cecile
Copy link
Member

could we add a test making a Local with a !Sync?

@JoJoJet I think we should do this, and wait on a second approval :)

@alice-i-cecile alice-i-cecile added this to the 0.12 milestone Aug 27, 2023
@JoJoJet
Copy link
Member Author

JoJoJet commented Aug 27, 2023

I have added a test :)

@alice-i-cecile alice-i-cecile requested a review from hymm August 27, 2023 21:32
@hymm hymm added the S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it label Aug 28, 2023
@alice-i-cecile alice-i-cecile added this pull request to the merge queue Aug 28, 2023
Merged via the queue into bevyengine:main with commit da8ab16 Aug 28, 2023
21 checks passed
@JoJoJet JoJoJet deleted the sync-local branch August 28, 2023 20:52
rdrpenguin04 pushed a commit to rdrpenguin04/bevy that referenced this pull request Jan 9, 2024
# Objective

bevyengine#5483 allows for the creation of non-`Sync` locals. However, it's not
actually possible to use these types as there is a `Sync` bound on the
`Deref` impls.

## Solution

Remove the unnecessary bounds.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-ECS Entities, components, systems, and events C-Bug An unexpected or incorrect 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