Skip to content

[Merged by Bors] - Relax Sync bound on Local<T> as ExclusiveSystemParam#7040

Closed
joseph-gio wants to merge 2 commits intobevyengine:mainfrom
joseph-gio:non-sync-exclusive-local
Closed

[Merged by Bors] - Relax Sync bound on Local<T> as ExclusiveSystemParam#7040
joseph-gio wants to merge 2 commits intobevyengine:mainfrom
joseph-gio:non-sync-exclusive-local

Conversation

@joseph-gio
Copy link
Member

Objective

The type Local<T> unnecessarily has the bound T: Sync when the local is used in an exclusive system.

Solution

Lift the bound.


Changelog

Removed the bound T: Sync from Local<T> when used as an ExclusiveSystemParam.

@joseph-gio joseph-gio added A-ECS Entities, components, systems, and events C-Usability A targeted quality-of-life change that makes Bevy easier to use labels Dec 27, 2022
Copy link
Member

@alice-i-cecile alice-i-cecile left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is surprisingly useful!

@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 Dec 27, 2022
@james7132 james7132 added this to the 0.10 milestone Jan 4, 2023
@alice-i-cecile
Copy link
Member

bors r+

@bors
Copy link
Contributor

bors bot commented Jan 9, 2023

Merge conflict.

@joseph-gio
Copy link
Member Author

bors retry

bors bot pushed a commit that referenced this pull request Jan 9, 2023
# Objective

The type `Local<T>` unnecessarily has the bound `T: Sync` when the local is used in an exclusive system.

## Solution

Lift the bound.

---

## Changelog

Removed the bound `T: Sync` from `Local<T>` when used as an `ExclusiveSystemParam`.
@bors bors bot changed the title Relax Sync bound on Local<T> as ExclusiveSystemParam [Merged by Bors] - Relax Sync bound on Local<T> as ExclusiveSystemParam Jan 9, 2023
@bors bors bot closed this Jan 9, 2023
@joseph-gio joseph-gio deleted the non-sync-exclusive-local branch January 10, 2023 03:26
james7132 pushed a commit to james7132/bevy that referenced this pull request Jan 21, 2023
…7040)

# Objective

The type `Local<T>` unnecessarily has the bound `T: Sync` when the local is used in an exclusive system.

## Solution

Lift the bound.

---

## Changelog

Removed the bound `T: Sync` from `Local<T>` when used as an `ExclusiveSystemParam`.
alradish pushed a commit to alradish/bevy that referenced this pull request Jan 22, 2023
…7040)

# Objective

The type `Local<T>` unnecessarily has the bound `T: Sync` when the local is used in an exclusive system.

## Solution

Lift the bound.

---

## Changelog

Removed the bound `T: Sync` from `Local<T>` when used as an `ExclusiveSystemParam`.
ItsDoot pushed a commit to ItsDoot/bevy that referenced this pull request Feb 1, 2023
…7040)

# Objective

The type `Local<T>` unnecessarily has the bound `T: Sync` when the local is used in an exclusive system.

## Solution

Lift the bound.

---

## Changelog

Removed the bound `T: Sync` from `Local<T>` when used as an `ExclusiveSystemParam`.
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-Usability A targeted quality-of-life change that makes Bevy easier to use 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.

4 participants