bevy/crates/bevy_ecs/src/world
Eagster 61bd3af7c7
Remove invalid entity locations (#19433)
# Objective

This is the first step of #19430 and is a follow up for #19132.

Now that `ArchetypeRow` has a niche, we can use `Option` instead of
needing `INVALID` everywhere.

This was especially concerning since `INVALID` *really was valid!*

Using options here made the code clearer and more data-driven. 

## Solution

Replace all uses of `INVALID` entity locations (and archetype/table
rows) with `None`.

## Testing

CI

---------

Co-authored-by: Chris Russell <8494645+chescock@users.noreply.github.com>
Co-authored-by: François Mockers <francois.mockers@vleue.com>
Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
2025-05-31 16:34:33 +00:00
..
command_queue.rs Harden proc macro path resolution and add integration tests. (#17330) 2025-02-09 19:45:45 +00:00
component_constants.rs Harden proc macro path resolution and add integration tests. (#17330) 2025-02-09 19:45:45 +00:00
deferred_world.rs reexport entity set collections in entity module (#18413) 2025-03-30 03:51:14 +00:00
entity_fetch.rs Remove invalid entity locations (#19433) 2025-05-31 16:34:33 +00:00
entity_ref.rs Remove invalid entity locations (#19433) 2025-05-31 16:34:33 +00:00
error.rs FilteredResource returns a Result instead of a simple Option (#18265) 2025-03-17 18:54:13 +00:00
filtered_resource.rs FilteredResource returns a Result instead of a simple Option (#18265) 2025-03-17 18:54:13 +00:00
identifier.rs Rename bevy_platform_support to bevy_platform (#18813) 2025-04-11 23:13:28 +00:00
mod.rs Remove invalid entity locations (#19433) 2025-05-31 16:34:33 +00:00
reflect.rs Get names of queued components (#18451) 2025-03-31 23:22:33 +00:00
spawn_batch.rs Encapsulate cfg(feature = "track_location") in a type. (#17602) 2025-02-10 21:21:20 +00:00
unsafe_world_cell.rs Fix a few typos in bevy_ecs docs (#19280) 2025-05-26 20:02:13 +00:00