FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Check for aliasing in `RawViewMut::from_shape_ptr` with a debug assertion by bluss · Pull Request #1413 · rust-ndarray/ndarray · GitHub

Check for aliasing in RawViewMut::from_shape_ptr with a debug assertion - #1413

Merged
bluss merged 1 commit into
masterfrom
from-shape-ptr
Aug 3, 2024
Merged

Check for aliasing in RawViewMut::from_shape_ptr with a debug assertion#1413
bluss merged 1 commit into
masterfrom
from-shape-ptr

Conversation

bluss commented Aug 3, 2024

Copy link
Copy Markdown
Member

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 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 merged commit b03953a into master Aug 3, 2024
bluss deleted the from-shape-ptr branch August 3, 2024 17:40
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL