You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given an array with known size N, and an enum with discriminants 0..N, indexing the array with the enum's discriminants does not elide bounds checking when out-of-bounds is impossible.
Given an array with known size N, and an enum with discriminants 0..N, indexing the array with the enum's discriminants does not elide bounds checking when out-of-bounds is impossible.
I tried this code:
I expected to see this happen: Assembly output does not have bounds checking.
Instead, this happened: https://godbolt.org/z/EMsjh63aj
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: