Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Mar 10, 2024

Conversation

jturner314
Copy link
Member

@jturner314 jturner314 commented Dec 7, 2021

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 bluss force-pushed the fix-convert-to-view-check branch from bbeed89 to a68435d Compare March 10, 2024 08:55
@bluss bluss enabled auto-merge March 10, 2024 08:55
@bluss 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
8 checks passed
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