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

Add missing safety checks to `From<&[[A; N]]> for ArrayView` and `From<&mut [[A; N]]> for ArrayViewMut` by jturner314 · Pull Request #1131 · rust-ndarray/ndarray · GitHub

Add missing safety checks to From<&[[A; N]]> for ArrayView and From<&mut [[A; N]]> for ArrayViewMut - #1131

Merged
bluss merged 2 commits into
rust-ndarray:masterfrom
jturner314:fix-convert-to-view-check
Mar 10, 2024
Merged

Add missing safety checks to From<&[[A; N]]> for ArrayView and From<&mut [[A; N]]> for ArrayViewMut#1131
bluss merged 2 commits into
rust-ndarray:masterfrom
jturner314:fix-convert-to-view-check

Conversation

jturner314 commented Dec 7, 2021
edited
Loading

Copy link
Copy Markdown
Member

While reviewing #1130, I noticed these missing checks introduced in #980. In the first commit, the new deny_slice_with_too_many_rows_to_arrayview*2 tests fail in release mode. The second commit fixes the code so that the tests pass.

bluss force-pushed the fix-convert-to-view-check branch from bbeed89 to a68435d Compare March 10, 2024 08:55
bluss enabled auto-merge March 10, 2024 08:55
bluss added this pull request to the merge queue Mar 10, 2024
Merged via the queue into rust-ndarray:master with commit eb12613 Mar 10, 2024
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL