Skip to content

Conversation

@CorvusPrudens
Copy link
Contributor

Objective

Addresses the immediate blocker in #21354 by relaxing the (crate) visibility restriction on DeferredWorld::as_unsafe_world_cell.

This method already has documentation, including a safety comment. While sparse, I think they communicate the function clearly.

@CorvusPrudens CorvusPrudens added S-Needs-Review Needs reviewer attention (from anyone!) to move forward D-Straightforward Simple bug fixes and API improvements, docs, test and examples A-ECS Entities, components, systems, and events D-Trivial Nice and easy! A great choice to get started with Bevy D-Unsafe Touches with unsafe code in some way and removed D-Straightforward Simple bug fixes and API improvements, docs, test and examples labels Oct 3, 2025
Copy link
Contributor

@chescock chescock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems like a good idea to me! Note that you could already call as_unsafe_world_cell_readonly() through Deref<Target = World>, so it was a little inconsistent that you couldn't do the &mut version.

Copy link
Contributor

@Shatur Shatur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is neat, I'll be able to avoid this re-borrow in bevy_replicon.

@alice-i-cecile alice-i-cecile added this to the 0.17.3 milestone Oct 4, 2025
@alice-i-cecile alice-i-cecile added S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it and removed S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Oct 4, 2025
@alice-i-cecile alice-i-cecile added this pull request to the merge queue Oct 4, 2025
Merged via the queue into bevyengine:main with commit 9227946 Oct 4, 2025
49 checks passed
@CorvusPrudens CorvusPrudens deleted the deferred-cell branch October 4, 2025 18:43
beicause pushed a commit to beicause/bevy that referenced this pull request Oct 6, 2025
# Objective

Addresses the immediate blocker in bevyengine#21354 by relaxing the `(crate)`
visibility restriction on `DeferredWorld::as_unsafe_world_cell`.

This method already has documentation, including a safety comment. While
sparse, I think they communicate the function clearly.
tigregalis pushed a commit to tigregalis/bevy that referenced this pull request Oct 7, 2025
# Objective

Addresses the immediate blocker in bevyengine#21354 by relaxing the `(crate)`
visibility restriction on `DeferredWorld::as_unsafe_world_cell`.

This method already has documentation, including a safety comment. While
sparse, I think they communicate the function clearly.
@cBournhonesque
Copy link
Contributor

Awesome, I was just about to open a PR for this, I needed this :)

mate-h pushed a commit to mate-h/bevy that referenced this pull request Oct 22, 2025
# Objective

Addresses the immediate blocker in bevyengine#21354 by relaxing the `(crate)`
visibility restriction on `DeferredWorld::as_unsafe_world_cell`.

This method already has documentation, including a safety comment. While
sparse, I think they communicate the function clearly.
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-Trivial Nice and easy! A great choice to get started with Bevy D-Unsafe Touches with unsafe code in some way S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants