Skip to content

Conversation

@HeartofPhos
Copy link
Contributor

Objective

Fixes #21980

Solution

Use fully qualified path for Entity

Testing

The following code now compiles

mod test {
    fn derive_component_relationship_hygiene() {
        #[derive(Debug, bevy::prelude::Component)]
        #[relationship(relationship_target = RelTarget)]
        struct Rel(pub bevy::prelude::Entity);

        #[derive(Debug, bevy::prelude::Component)]
        #[relationship_target(relationship = Rel)]
        struct RelTarget(bevy::prelude::Entity);
    }
}```

@HeartofPhos HeartofPhos changed the title use fully qualified path for Entity #21980 Fix Component/Relationship derive use non fully qualified path Nov 30, 2025
@HeartofPhos HeartofPhos changed the title #21980 Fix Component/Relationship derive use non fully qualified path #21980 Fix Component/Relationship derive using non fully qualified path Nov 30, 2025
@hymm hymm added A-ECS Entities, components, systems, and events D-Macros Code that generates Rust code S-Needs-Review Needs reviewer attention (from anyone!) to move forward D-Trivial Nice and easy! A great choice to get started with Bevy labels Dec 3, 2025
@mockersf mockersf added this pull request to the merge queue Dec 3, 2025
Merged via the queue into bevyengine:main with commit 8c78e46 Dec 3, 2025
45 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-ECS Entities, components, systems, and events D-Macros Code that generates Rust code D-Trivial Nice and easy! A great choice to get started with Bevy S-Needs-Review Needs reviewer attention (from anyone!) to move forward

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Component/Relationship derive uses a non fully qualified path

3 participants