Skip to content

Conversation

@WaffleLapkin
Copy link
Contributor

Objective

Solution

  • Replace <[T; 0]>::default() calls with []

Testing

  • It compiles, the <[T; 0]>::default() is equivalent to [], no additional testing required
@alice-i-cecile alice-i-cecile added A-ECS Entities, components, systems, and events C-Code-Quality A section of code that is hard to understand or change P-High This is particularly urgent, and deserves immediate attention S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Oct 26, 2025
@alice-i-cecile
Copy link
Member

Thanks Waffle :) This seems perfectly fine for us: I appreciate you PR'ing this!

@alice-i-cecile
Copy link
Member

We should discuss if we want to backport this PR to previous Bevy versions too. Being able to compile old versions of Bevy with new compilers is nice. I think that the offending code is relatively new.

@janhohenheim janhohenheim added D-Trivial Nice and easy! A great choice to get started with Bevy S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it and removed S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Oct 26, 2025
@mockersf mockersf added this to the 0.17.3 milestone Oct 26, 2025
@alice-i-cecile alice-i-cecile added this pull request to the merge queue Oct 26, 2025
Merged via the queue into bevyengine:main with commit 8821eda Oct 26, 2025
49 checks passed
@WaffleLapkin WaffleLapkin deleted the undefault branch October 26, 2025 21:08
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-Code-Quality A section of code that is hard to understand or change D-Trivial Nice and easy! A great choice to get started with Bevy P-High This is particularly urgent, and deserves immediate attention S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it

4 participants