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] - Fix ignored lifetimes in #[derive(SystemParam)] #7458

Closed
wants to merge 3 commits into from

Conversation

JoJoJet
Copy link
Member

@JoJoJet JoJoJet commented Feb 1, 2023

Objective

Fix #7447.

The SystemParam derive uses the wrong lifetimes for ignored fields.

Solution

Use type inference instead of explicitly naming the types of ignored fields. This allows the compiler to automatically use the correct lifetime.

@JoJoJet JoJoJet added C-Bug An unexpected or incorrect behavior A-ECS Entities, components, systems, and events labels Feb 1, 2023
@JoJoJet JoJoJet added this to the 0.10 milestone Feb 1, 2023
@JoJoJet JoJoJet changed the title Fix invalid lifetimes in #[derive(SystemParam)] Fix ignored lifetimes in #[derive(SystemParam)] Feb 1, 2023
@james7132 james7132 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 Feb 3, 2023
@james7132 james7132 requested a review from BoxyUwU February 3, 2023 06:10
@james7132
Copy link
Member

bors r+

bors bot pushed a commit that referenced this pull request Feb 3, 2023
# Objective

Fix #7447.

The `SystemParam` derive uses the wrong lifetimes for ignored fields.

## Solution

Use type inference instead of explicitly naming the types of ignored fields. This allows the compiler to automatically use the correct lifetime.
@bors bors bot changed the title Fix ignored lifetimes in #[derive(SystemParam)] [Merged by Bors] - Fix ignored lifetimes in #[derive(SystemParam)] Feb 3, 2023
@bors bors bot closed this Feb 3, 2023
@JoJoJet JoJoJet deleted the param-fix branch February 3, 2023 16:20
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-Bug An unexpected or incorrect behavior 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.

Invalid lifetime when deriving SystemParam
4 participants