bevy/crates/bevy_ecs_compile_fail_tests/tests/ui
Zachary Harrold 1974723a63
Deprecated Various Component Methods from Query and QueryState (#9920)
# Objective

- (Partially) Fixes #9904
- Acts on #9910

## Solution

- Deprecated the relevant methods from `Query`, cascading changes as
required across Bevy.

---

## Changelog

- Deprecated `QueryState::get_component_unchecked_mut` method
- Deprecated `Query::get_component` method
- Deprecated `Query::get_component_mut` method
- Deprecated `Query::component` method
- Deprecated `Query::component_mut` method
- Deprecated `Query::get_component_unchecked_mut` method

## Migration Guide

### `QueryState::get_component_unchecked_mut`

Use `QueryState::get_unchecked_manual` and select for the exact
component based on the structure of the exact query as required.

### `Query::(get_)component(_unchecked)(_mut)`

Use `Query::get` and select for the exact component based on the
structure of the exact query as required.

- For mutable access (`_mut`), use `Query::get_mut`
- For unchecked access (`_unchecked`), use `Query::get_unchecked`
- For panic variants (non-`get_`), add `.unwrap()`

## Notes

- `QueryComponentError` can be removed once these deprecated methods are
also removed. Due to an interaction with `thiserror`'s derive macro, it
is not marked as deprecated.
2024-02-04 01:01:59 +00:00
..
entity_ref_mut_lifetime_safety.rs EntityMut: rename remove_intersection to remove and remove to take (#7810) 2023-02-26 00:09:19 +00:00
entity_ref_mut_lifetime_safety.stderr Updates for rust 1.73 (#10035) 2023-10-06 00:31:10 +00:00
query_exact_sized_iterator_safety.rs Update ExactSizeIterator impl to support archetypal filters (With, Without) (#5124) 2022-06-29 02:15:28 +00:00
query_exact_sized_iterator_safety.stderr Fix CI for Rust 1.72 (#9562) 2023-08-25 12:34:24 +00:00
query_iter_combinations_mut_iterator_safety.rs Replace many_for_each_mut with iter_many_mut. (#5402) 2022-07-30 01:38:13 +00:00
query_iter_combinations_mut_iterator_safety.stderr Rename WorldQueryData & WorldQueryFilter to QueryData & QueryFilter (#10779) 2023-12-12 19:45:50 +00:00
query_iter_many_mut_iterator_safety.rs Make Resource trait opt-in, requiring #[derive(Resource)] V2 (#5577) 2022-08-08 21:36:35 +00:00
query_iter_many_mut_iterator_safety.stderr Rename WorldQueryData & WorldQueryFilter to QueryData & QueryFilter (#10779) 2023-12-12 19:45:50 +00:00
query_lifetime_safety.rs Deprecated Various Component Methods from Query and QueryState (#9920) 2024-02-04 01:01:59 +00:00
query_lifetime_safety.stderr Deprecated Various Component Methods from Query and QueryState (#9920) 2024-02-04 01:01:59 +00:00
query_to_readonly.rs Allows conversion of mutable queries to immutable queries (#5376) 2022-07-20 01:09:45 +00:00
query_to_readonly.stderr Updates for rust 1.73 (#10035) 2023-10-06 00:31:10 +00:00
query_transmute_safety.rs Dynamic queries and builder API (#9774) 2024-01-16 19:16:49 +00:00
query_transmute_safety.stderr Dynamic queries and builder API (#9774) 2024-01-16 19:16:49 +00:00
system_param_derive_readonly.rs Simplify trait hierarchy for SystemParam (#6865) 2022-12-11 18:34:14 +00:00
system_param_derive_readonly.stderr Rename WorldQueryData & WorldQueryFilter to QueryData & QueryFilter (#10779) 2023-12-12 19:45:50 +00:00
system_query_get_lifetime_safety.rs Make Resource trait opt-in, requiring #[derive(Resource)] V2 (#5577) 2022-08-08 21:36:35 +00:00
system_query_get_lifetime_safety.stderr Updates for rust 1.73 (#10035) 2023-10-06 00:31:10 +00:00
system_query_get_many_lifetime_safety.rs Make Resource trait opt-in, requiring #[derive(Resource)] V2 (#5577) 2022-08-08 21:36:35 +00:00
system_query_get_many_lifetime_safety.stderr Updates for rust 1.73 (#10035) 2023-10-06 00:31:10 +00:00
system_query_get_many_mut_lifetime_safety.rs Make Resource trait opt-in, requiring #[derive(Resource)] V2 (#5577) 2022-08-08 21:36:35 +00:00
system_query_get_many_mut_lifetime_safety.stderr Updates for rust 1.73 (#10035) 2023-10-06 00:31:10 +00:00
system_query_iter_lifetime_safety.rs Assert compiler errors for compile_fail tests (#3067) 2021-11-13 22:43:19 +00:00
system_query_iter_lifetime_safety.stderr Updates for rust 1.73 (#10035) 2023-10-06 00:31:10 +00:00
system_query_iter_many_mut_lifetime_safety.rs Make Resource trait opt-in, requiring #[derive(Resource)] V2 (#5577) 2022-08-08 21:36:35 +00:00
system_query_iter_many_mut_lifetime_safety.stderr Updates for rust 1.73 (#10035) 2023-10-06 00:31:10 +00:00
system_query_set_get_lifetime_safety.rs Make Resource trait opt-in, requiring #[derive(Resource)] V2 (#5577) 2022-08-08 21:36:35 +00:00
system_query_set_get_lifetime_safety.stderr Updates for rust 1.73 (#10035) 2023-10-06 00:31:10 +00:00
system_query_set_iter_lifetime_safety.rs ParamSet for conflicting SystemParam:s (#2765) 2022-03-29 23:39:38 +00:00
system_query_set_iter_lifetime_safety.stderr Updates for rust 1.73 (#10035) 2023-10-06 00:31:10 +00:00
system_state_get_lifetime_safety.rs Assert compiler errors for compile_fail tests (#3067) 2021-11-13 22:43:19 +00:00
system_state_get_lifetime_safety.stderr Assert compiler errors for compile_fail tests (#3067) 2021-11-13 22:43:19 +00:00
system_state_iter_lifetime_safety.rs Assert compiler errors for compile_fail tests (#3067) 2021-11-13 22:43:19 +00:00
system_state_iter_lifetime_safety.stderr Assert compiler errors for compile_fail tests (#3067) 2021-11-13 22:43:19 +00:00
system_state_iter_mut_overlap_safety.rs Spawn now takes a Bundle (#6054) 2022-09-23 19:55:54 +00:00
system_state_iter_mut_overlap_safety.stderr Updates for rust 1.73 (#10035) 2023-10-06 00:31:10 +00:00
world_query_derive.rs Rename WorldQueryData & WorldQueryFilter to QueryData & QueryFilter (#10779) 2023-12-12 19:45:50 +00:00
world_query_derive.stderr Rename WorldQueryData & WorldQueryFilter to QueryData & QueryFilter (#10779) 2023-12-12 19:45:50 +00:00