mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 20:53:53 +00:00
Fix Entity hygiene in WorldQuery (#6614)
# Objective Fix #6593 ## Solution Fully qualify `Entity` in the `WorldQuery` macro
This commit is contained in:
parent
7231e00507
commit
1967c3ddef
1 changed files with 2 additions and 2 deletions
|
@ -282,7 +282,7 @@ pub fn derive_world_query_impl(ast: DeriveInput) -> TokenStream {
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
unsafe fn fetch<'__w>(
|
unsafe fn fetch<'__w>(
|
||||||
_fetch: &mut <Self as #path::query::WorldQuery>::Fetch<'__w>,
|
_fetch: &mut <Self as #path::query::WorldQuery>::Fetch<'__w>,
|
||||||
_entity: Entity,
|
_entity: #path::entity::Entity,
|
||||||
_table_row: usize
|
_table_row: usize
|
||||||
) -> <Self as #path::query::WorldQuery>::Item<'__w> {
|
) -> <Self as #path::query::WorldQuery>::Item<'__w> {
|
||||||
Self::Item {
|
Self::Item {
|
||||||
|
@ -295,7 +295,7 @@ pub fn derive_world_query_impl(ast: DeriveInput) -> TokenStream {
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
unsafe fn filter_fetch<'__w>(
|
unsafe fn filter_fetch<'__w>(
|
||||||
_fetch: &mut <Self as #path::query::WorldQuery>::Fetch<'__w>,
|
_fetch: &mut <Self as #path::query::WorldQuery>::Fetch<'__w>,
|
||||||
_entity: Entity,
|
_entity: #path::entity::Entity,
|
||||||
_table_row: usize
|
_table_row: usize
|
||||||
) -> bool {
|
) -> bool {
|
||||||
true #(&& <#field_types>::filter_fetch(&mut _fetch.#field_idents, _entity, _table_row))*
|
true #(&& <#field_types>::filter_fetch(&mut _fetch.#field_idents, _entity, _table_row))*
|
||||||
|
|
Loading…
Reference in a new issue