Deprecate QueryState::for_each_unchecked (#10815)
# Objective Resolves Issue #10772. ## Solution Added the deprecated warning for QueryState::for_each_unchecked, as noted in the comments of PR #6773. Followed the wording in the deprecation messages for `for_each` and `for_each_mut`
This commit is contained in:
parent
2148518758
commit
cbf39b7eab
@ -1040,6 +1040,10 @@ impl<Q: WorldQueryData, F: WorldQueryFilter> QueryState<Q, F> {
|
||||
/// This does not check for mutable query correctness. To be safe, make sure mutable queries
|
||||
/// have unique access to the components they query.
|
||||
#[inline]
|
||||
#[deprecated(
|
||||
since = "0.13.0",
|
||||
note = "QueryState::for_each_unchecked was not idiomatic Rust and has been moved to query.iter_unchecked_manual().for_each()"
|
||||
)]
|
||||
pub unsafe fn for_each_unchecked<'w, FN: FnMut(Q::Item<'w>)>(
|
||||
&mut self,
|
||||
world: UnsafeWorldCell<'w>,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user