Skip to content

Commit 6301b72

Browse files
committed
remove commented code and TODO as it's not actually possible (#2289)
Fixing it was tried in #2069 and deemed not possible (#2069 (comment)) Other possibility would be to change the TODO to note the dependency on chalk integration.
1 parent 0b67084 commit 6301b72

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

crates/bevy_ecs/src/query/filter.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,6 @@ use crate::{
1010
use bevy_ecs_macros::all_tuples;
1111
use std::{cell::UnsafeCell, marker::PhantomData, ptr};
1212

13-
// TODO: uncomment this and use as shorthand (remove where F::Fetch: FilterFetch everywhere) when
14-
// this bug is fixed in Rust 1.51: https://github.com/rust-lang/rust/pull/81671
15-
// pub trait QueryFilter: WorldQuery
16-
// where
17-
// Self::Fetch: FilterFetch,
18-
// {
19-
// }
20-
21-
// impl<T: WorldQuery> QueryFilter for T where T::Fetch: FilterFetch {
22-
// }
23-
2413
/// Extension trait for [`Fetch`] containing methods used by query filters.
2514
/// This trait exists to allow "short circuit" behaviors for relevant query filter fetches.
2615
pub trait FilterFetch: for<'a> Fetch<'a> {

0 commit comments

Comments
 (0)