-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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] - Query
filter types must be ReadOnlyWorldQuery
#6008
Conversation
Can you change your PR to description to something a bit more descriptive and add a quick migration guide section? |
Many of these changes seem unrelated; looks like a rebasing issue? |
…olchain rather than nightly.
Code changes LGTM now! For the title, can you put "Query filter types must be For the migration guide, how about: Migration GuideQuery filter ( |
Query
filter types must be ReadOnlyWorldQuery
bors r+ |
# Objective Fixes Issue #6005. ## Solution Replaced WorldQuery with ReadOnlyWorldQuery on F generic in Query filters and QueryState to restrict its trait bound. ## Migration Guide Query filter (`F`) generics are now bound by `ReadOnlyWorldQuery`, rather than `WorldQuery`. If for some reason you were requesting `Query<&A, &mut B>`, please use `Query<&A, With<B>>` instead.
Pull request successfully merged into main. Build succeeded: |
Query
filter types must be ReadOnlyWorldQuery
Query
filter types must be ReadOnlyWorldQuery
# Objective Fixes Issue bevyengine#6005. ## Solution Replaced WorldQuery with ReadOnlyWorldQuery on F generic in Query filters and QueryState to restrict its trait bound. ## Migration Guide Query filter (`F`) generics are now bound by `ReadOnlyWorldQuery`, rather than `WorldQuery`. If for some reason you were requesting `Query<&A, &mut B>`, please use `Query<&A, With<B>>` instead.
# Objective Fixes Issue bevyengine#6005. ## Solution Replaced WorldQuery with ReadOnlyWorldQuery on F generic in Query filters and QueryState to restrict its trait bound. ## Migration Guide Query filter (`F`) generics are now bound by `ReadOnlyWorldQuery`, rather than `WorldQuery`. If for some reason you were requesting `Query<&A, &mut B>`, please use `Query<&A, With<B>>` instead.
# Objective Fixes Issue bevyengine#6005. ## Solution Replaced WorldQuery with ReadOnlyWorldQuery on F generic in Query filters and QueryState to restrict its trait bound. ## Migration Guide Query filter (`F`) generics are now bound by `ReadOnlyWorldQuery`, rather than `WorldQuery`. If for some reason you were requesting `Query<&A, &mut B>`, please use `Query<&A, With<B>>` instead.
Objective
Fixes Issue #6005.
Solution
Replaced WorldQuery with ReadOnlyWorldQuery on F generic in Query filters and QueryState to restrict its trait bound.
Migration Guide
Query filter (
F
) generics are now bound byReadOnlyWorldQuery
, rather thanWorldQuery
. If for some reason you were requestingQuery<&A, &mut B>
, please useQuery<&A, With<B>>
instead.