You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pulled latest bevy main changes to get the SystemParam private field changes.
Attempted to use it on a generic system param that used a where clause to constrain generics.
error[E0277]: the trait bound `Q: fetch::WorldQuery` is not satisfied
--> crates/bevy_ecs/src/relation/operations.rs:99:10
|
99 | #[derive(SystemParam)]
| ^^^^^^^^^^^ the trait `fetch::WorldQuery` is not implemented for `Q`
|
note: required for `system::query::Query<'w,'s,Q>` to implement `system_param::SystemParam`
--> crates/bevy_ecs/src/system/system_param.rs:165:72
|
165 | impl<'w,'s,Q:WorldQuery + 'static,F:ReadOnlyWorldQuery + 'static> SystemParam
| ^^^^^^^^^^^
166 | forQuery<'w,'s,Q,F>
| ^^^^^^^^^^^^^^^^^^^
= note: this error originates in the derive macro `SystemParam` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider restricting type parameter `Q`
|
100 | pub struct Foo<'w,'s,Q: query::fetch::WorldQuery>
| ++++++++++++++++++++++++++
Additional information
Changing the constraints to be within the generic params instead of the where clause like so makes this error go away.
# Objective
- Fix#7103.
- The issue is caused because I forgot to add a where clause to a generated struct in #7056.
## Solution
- Add the where clause.
# Objective
- Fix#7103.
- The issue is caused because I forgot to add a where clause to a generated struct in #7056.
## Solution
- Add the where clause.
# Objective
- Fixbevyengine#7103.
- The issue is caused because I forgot to add a where clause to a generated struct in bevyengine#7056.
## Solution
- Add the where clause.
ItsDoot
pushed a commit
to ItsDoot/bevy
that referenced
this issue
Feb 1, 2023
# Objective
- Fixbevyengine#7103.
- The issue is caused because I forgot to add a where clause to a generated struct in bevyengine#7056.
## Solution
- Add the where clause.
Bevy version
329b71f
What you did
Pulled latest bevy main changes to get the
SystemParam
private field changes.Attempted to use it on a generic system param that used a where clause to constrain generics.
What went wrong
Got errors saying to add an unapplyable fix.
Additional information
Changing the constraints to be within the generic params instead of the where clause like so makes this error go away.
The text was updated successfully, but these errors were encountered: