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

[Merged by Bors] - remove ReflectMut in favor of Mut<dyn Reflect> #5630

Closed

Conversation

jakobhellermann
Copy link
Contributor

Objective

  • ReflectMut served no purpose that wasn't met by Mut<dyn Reflect> which is easier to understand since you have to deal with fewer types
  • there is another ReflectMut type that could be confused with this one

Solution/Changelog

  • relax T: ?Sized bound in Mut<T>
  • replace all instances of ReflectMut with Mut<dyn Reflect>

@alice-i-cecile alice-i-cecile added C-Code-Quality A section of code that is hard to understand or change A-Reflection Runtime information about types labels Aug 9, 2022
@alice-i-cecile alice-i-cecile added S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it C-Breaking-Change A breaking change to Bevy's public API that needs to be noted in a migration guide labels Aug 9, 2022
@alice-i-cecile
Copy link
Member

Technically breaking as ReflectMut was pub.

bors r+

bors bot pushed a commit that referenced this pull request Aug 9, 2022
# Objective

- `ReflectMut` served no purpose that wasn't met by `Mut<dyn Reflect>` which is easier to understand since you have to deal with fewer types
- there is another `ReflectMut` type that could be confused with this one

## Solution/Changelog

- relax `T: ?Sized` bound in `Mut<T>`
- replace all instances of `ReflectMut` with `Mut<dyn Reflect>`
@bors bors bot changed the title remove ReflectMut in favor of Mut<dyn Reflect> [Merged by Bors] - remove ReflectMut in favor of Mut<dyn Reflect> Aug 9, 2022
@bors bors bot closed this Aug 9, 2022
@jakobhellermann jakobhellermann deleted the remove-reflect-mut branch August 10, 2022 13:12
maccesch pushed a commit to Synphonyte/bevy that referenced this pull request Sep 28, 2022
# Objective

- `ReflectMut` served no purpose that wasn't met by `Mut<dyn Reflect>` which is easier to understand since you have to deal with fewer types
- there is another `ReflectMut` type that could be confused with this one

## Solution/Changelog

- relax `T: ?Sized` bound in `Mut<T>`
- replace all instances of `ReflectMut` with `Mut<dyn Reflect>`
bors bot pushed a commit that referenced this pull request Oct 24, 2022
…#5993)

# Objective

- Fix disabling features in bevy_ecs (broken by #5630)
- Add tests in CI for bevy_ecs, bevy_reflect and bevy as those crates could be use standalone
james7132 pushed a commit to james7132/bevy that referenced this pull request Oct 28, 2022
# Objective

- `ReflectMut` served no purpose that wasn't met by `Mut<dyn Reflect>` which is easier to understand since you have to deal with fewer types
- there is another `ReflectMut` type that could be confused with this one

## Solution/Changelog

- relax `T: ?Sized` bound in `Mut<T>`
- replace all instances of `ReflectMut` with `Mut<dyn Reflect>`
james7132 pushed a commit to james7132/bevy that referenced this pull request Oct 28, 2022
…bevyengine#5993)

# Objective

- Fix disabling features in bevy_ecs (broken by bevyengine#5630)
- Add tests in CI for bevy_ecs, bevy_reflect and bevy as those crates could be use standalone
Pietrek14 pushed a commit to Pietrek14/bevy that referenced this pull request Dec 17, 2022
…bevyengine#5993)

# Objective

- Fix disabling features in bevy_ecs (broken by bevyengine#5630)
- Add tests in CI for bevy_ecs, bevy_reflect and bevy as those crates could be use standalone
ItsDoot pushed a commit to ItsDoot/bevy that referenced this pull request Feb 1, 2023
# Objective

- `ReflectMut` served no purpose that wasn't met by `Mut<dyn Reflect>` which is easier to understand since you have to deal with fewer types
- there is another `ReflectMut` type that could be confused with this one

## Solution/Changelog

- relax `T: ?Sized` bound in `Mut<T>`
- replace all instances of `ReflectMut` with `Mut<dyn Reflect>`
ItsDoot pushed a commit to ItsDoot/bevy that referenced this pull request Feb 1, 2023
…bevyengine#5993)

# Objective

- Fix disabling features in bevy_ecs (broken by bevyengine#5630)
- Add tests in CI for bevy_ecs, bevy_reflect and bevy as those crates could be use standalone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Reflection Runtime information about types C-Breaking-Change A breaking change to Bevy's public API that needs to be noted in a migration guide C-Code-Quality A section of code that is hard to understand or change 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.

None yet

3 participants