Skip to content

Conversation

@iximeow
Copy link
Member

@iximeow iximeow commented Jan 6, 2026

Along the way I realized the copying in #985 is somewhat more obviously correct when written in terms of SubMapping operations, so move that along with the docs.


for some context, in writing #985 (comment) I realized part of how I took an indirect path to copy_nonoverlapping was because I'd looked at SubMapping, skimmed the doc comment on Mapping, and misread the note about references as and reference must follow reference safety rather than and it is impossible to construct references to guest memory. so, this reworks the Mapping doc comment to talk a bit more about the niche it's mediating (and be more clear that SubMapping really is constrained in all those same ways)

as I wrote this I realized that there isn't any reason that MappingExt shouldn't be able to use the SubMapping methods that already do the Harder Work of safety reasoning, so I've cleaned that up some too.

Along the way I realized the copying in #985 is somewhat more obviously
correct when written in terms of `SubMapping` operations, so move that
along with the docs.
@iximeow iximeow requested a review from hawkw January 6, 2026 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants