Skip to content

Conversation

bluss
Copy link
Member

@bluss bluss commented Aug 3, 2024

It should deny overlapping indexes. Because it's an unsafe function and we only do these checks on best-effort basis (caller has to ensure they are correct), it's a debug assertion.

Removed the small addition to a doc comment that was done in a previous PR (it was an unfinished idea).

Similar to pr #1410
Finishes and closes #919

@bluss bluss changed the title Check for aliasing in RawViewMut::from_shape_ptr Check for aliasing in RawViewMut::from_shape_ptr with a debug assertion Aug 3, 2024
It should deny overlapping indexes. Because it's an unsafe function and
we only do these checks on best-effort basis (caller has to ensure they
are correct), it's a debug assertion.

Removed the small addition to a doc comment that was done in a previous
PR (it was an unfinished idea).

Similar to pr #1410
Finishes and closes #919
@bluss bluss merged commit b03953a into master Aug 3, 2024
@bluss bluss deleted the from-shape-ptr branch August 3, 2024 17:40
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.

Add/remove aliasing checks in constructors
1 participant