bevy/crates/bevy_ecs/src/system
PROMETHIA-27 f3b5bf029c Add FromWorld bound to T in Local<T> (#5481)
# Objective

Currently, actually using a `Local` on a system requires that it be `T: FromWorld`, but that requirement is only expressed on the `SystemParam` machinery, which leads to the confusing error message for when the user attempts to add an invalid system. By adding these bounds to `Local` directly, it improves clarity on usage and semantics. 

## Solution

- Add `T: FromWorld` bound to `Local`'s definition

## Migration Guide

- It might be possible for references to `Local`s without `T: FromWorld` to exist, but these should be exceedingly rare and probably dead code. In the event that one of these is encountered, the easiest solutions are to delete the code or wrap the inner `T` in an `Option` to allow it to be default constructed to `None`.
2022-08-01 16:50:11 +00:00
..
commands Document exotic patterns for Commands and Events (#4840) 2022-07-13 14:40:52 +00:00
exclusive_system.rs Update codebase to use IntoIterator where possible. (#5269) 2022-07-11 15:28:50 +00:00
function_system.rs Fix various typos (#5417) 2022-07-21 20:46:54 +00:00
mod.rs Allows conversion of mutable queries to immutable queries (#5376) 2022-07-20 01:09:45 +00:00
query.rs Replace many_for_each_mut with iter_many_mut. (#5402) 2022-07-30 01:38:13 +00:00
system.rs Simplify design for *Labels (#4957) 2022-07-14 18:23:01 +00:00
system_chaining.rs Very minor doc formatting changes (#5287) 2022-07-12 13:06:16 +00:00
system_param.rs Add FromWorld bound to T in Local<T> (#5481) 2022-08-01 16:50:11 +00:00