Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(rust): Fix fencepost debug assertion in splitfields
For some slice `v` of length `n`, it is UB to call `get_unchecked` with a range starting at `n+1`. Previously, we asserted that `pos <= n`, which is the requirement for `v.get_unchecked(..pos)`, but not `v.get_unchecked(pos+1..)` which has the tighter requirement `pos < n`.
- Loading branch information