bevy/crates/bevy_ecs/src/system
Niklas Eicker d0f423d653 Assert compiler errors for compile_fail tests (#3067)
# Objective

bevy_ecs has several compile_fail tests that assert lifetime safety. In the past, these tests have been green for the wrong reasons (see e.g. #2984). This PR makes sure, that they will fail if the compiler error changes.

## Solution

Use [trybuild](https://crates.io/crates/trybuild) to assert the compiler errors.

The UI tests are in a separate crate that is not part of the Bevy workspace. This is to ensure that they do not break Bevy's crater builds. The tests get executed by the CI workflow on the stable toolchain.
2021-11-13 22:43:19 +00:00
..
commands Implement and require #[derive(Component)] on all component structs (#2254) 2021-10-03 19:23:44 +00:00
exclusive_system.rs remove Box from ExclusiveSystemFn (#3063) 2021-11-04 20:55:28 +00:00
function_system.rs Unique WorldId (#2827) 2021-09-30 20:54:47 +00:00
mod.rs Assert compiler errors for compile_fail tests (#3067) 2021-11-13 22:43:19 +00:00
query.rs Fix unsound lifetime annotation on Query::get_component (#2964) 2021-10-15 16:59:29 +00:00
system.rs Unique WorldId (#2827) 2021-09-30 20:54:47 +00:00
system_chaining.rs Unique WorldId (#2827) 2021-09-30 20:54:47 +00:00
system_param.rs add detailed errors (#2994) 2021-11-06 20:53:11 +00:00