diff options
| author | Ulrik Sverdrup <bluss@users.noreply.github.com> | 2016-11-29 04:11:12 +0100 |
|---|---|---|
| committer | Ulrik Sverdrup <bluss@users.noreply.github.com> | 2016-11-30 18:59:58 +0100 |
| commit | d83fff3b3b9dd0fd6eef862e97f883d171367041 (patch) | |
| tree | ab91da72cf2f86842144be21115ad9a3787dd57e /src/rustllvm/RustWrapper.cpp | |
| parent | 127a83df6615d09cda6ed9b53f7daba2d78c925d (diff) | |
| download | rust-d83fff3b3b9dd0fd6eef862e97f883d171367041.tar.gz rust-d83fff3b3b9dd0fd6eef862e97f883d171367041.zip | |
Use more specific panic message for &str slicing errors
Separate out of bounds errors from character boundary errors, and print
more details for character boundary errors.
Example:
&"abcαβγ"[..4]
thread 'str::test_slice_fail_boundary_1' panicked at 'byte index 4 is not
a char boundary; it is inside `α` (bytes 3..5) of `abcαβγ`'
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
