[Merged by Bors] - Fix all_tuples macro for non-0/1 starts#4002
[Merged by Bors] - Fix all_tuples macro for non-0/1 starts#4002james7132 wants to merge 1 commit intobevyengine:mainfrom
Conversation
DJMcNab
left a comment
There was a problem hiding this comment.
The change in itself is fine, although the motivation is unclear. I don't think we want all_tuples to be part of our public API, and obviously no internal uses run into this case.
|
Ran into it as a part of #2381, where it was explicitly used in a case where the start for the macro was set at 2 to avoid confusing duplicate cases in the API. This has since been made into an ecosystem crate (bevy_system_graph) instead of being merged into bevy_ecs, which is now as an external consumer of the macro. |
|
I just saw that Since it is useful outside of our internal use, |
The macro is used in |
|
bors r+ |
|
My preference is that we leave this public and move it to bevy_utils. I don't think it deserves its own crate. |
# Objective `all_tuples` panics when the start count is set to anything other than 0 or 1. Fix this bug. ## Solution Originally part of #2381, this PR fixes the slice indexing used by the proc macro.
# Objective `all_tuples` panics when the start count is set to anything other than 0 or 1. Fix this bug. ## Solution Originally part of bevyengine#2381, this PR fixes the slice indexing used by the proc macro.
Objective
all_tuplespanics when the start count is set to anything other than 0 or 1. Fix this bug.Solution
Originally part of #2381, this PR fixes the slice indexing used by the proc macro.