Skip to content

Implement ReadOnlySystemParam for PopulatedMessageReader - #25775

Merged
alice-i-cecile merged 1 commit into
bevyengine:mainfrom
franpereira:populated-reader-readonly
Sep 15, 2026
Merged

alice-i-cecile merged 1 commit into
bevyengine:mainfrom
franpereira:populated-reader-readonly

Conversation

@franpereira

Copy link
Copy Markdown
Contributor

Objective

Fixes #25759

PopulatedMessageReader can't be used in run conditions because it doesn't implement ReadOnlySystemParam.

Solution

Implement the trait, as it is safe to do because all world access is delegated to its inner MessageReader, which already implements it.

Testing

Verified that using a function taking PopulatedMessageReader in a .run_if condition now compiles correctly.

@github-actions

Copy link
Copy Markdown
Contributor

Welcome, new contributor!

Please make sure you've read our contributing guide, as well as our policy regarding AI usage, and we look forward to reviewing your pull request shortly ✨

@alice-i-cecile alice-i-cecile added D-Trivial Nice and easy! A great choice to get started with Bevy A-ECS Entities, components, systems, and events S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it X-Uncontroversial This work is generally agreed upon labels Sep 14, 2026
@github-project-automation github-project-automation Bot moved this to Needs SME Triage in ECS Sep 14, 2026
@alice-i-cecile
alice-i-cecile added this pull request to the merge queue Sep 15, 2026
Merged via the queue into bevyengine:main with commit 872b58a Sep 15, 2026
47 checks passed
@github-project-automation github-project-automation Bot moved this from Needs SME Triage to Done in ECS Sep 15, 2026
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 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 X-Uncontroversial This work is generally agreed upon

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

PopulatedMessageReader does not implement ReadOnlySystemParam.

3 participants