diff options
| author | ridiculousfish <corydoras@ridiculousfish.com> | 2020-02-22 13:28:53 -0800 |
|---|---|---|
| committer | ridiculousfish <corydoras@ridiculousfish.com> | 2020-02-22 13:30:54 -0800 |
| commit | 9e41c4b682f625ae7860255c2d17790f5d9f324a (patch) | |
| tree | 4f7342a63c9f9a3524834a6c17c030b83d6e58c8 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs | |
| parent | 3eeefc21f1a3ed9755c072c83808ed5c087b8c9a (diff) | |
| download | rust-9e41c4b682f625ae7860255c2d17790f5d9f324a.tar.gz rust-9e41c4b682f625ae7860255c2d17790f5d9f324a.zip | |
Relax str::get_unchecked precondition to permit empty slicing
Prior to this commit, `str` documented that `get_unchecked` had the precondition that "`begin` must come before `end`". This would appear to prohibit empty slices (i.e. begin == end). In practice, get_unchecked is called often with empty slices. Let's relax the precondition so as to allow them.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions
