Skip to content

Alias violations for EntityMut/EntityRef #14575

@re0312

Description

@re0312

Bevy version

main

What you did

use bevy::prelude::*;

fn sys(_a: Query<EntityMut>, _b: Query<EntityMut>) {}

fn main() {
    let mut app = App::new();
    app.add_systems(Update, sys).run();
}

What went wrong

this code should panic due to runtime alias violation checks, but it didn't.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-ECSEntities, components, systems, and eventsC-BugAn unexpected or incorrect behaviorD-UnsafeTouches with unsafe code in some wayP-HighThis is particularly urgent, and deserves immediate attentionP-UnsoundA bug that results in undefined compiler behavior

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions