about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorUlrik Sverdrup <bluss@users.noreply.github.com>2016-11-29 04:11:12 +0100
committerUlrik Sverdrup <bluss@users.noreply.github.com>2016-11-30 18:59:58 +0100
commitd83fff3b3b9dd0fd6eef862e97f883d171367041 (patch)
treeab91da72cf2f86842144be21115ad9a3787dd57e /src/rustllvm/RustWrapper.cpp
parent127a83df6615d09cda6ed9b53f7daba2d78c925d (diff)
downloadrust-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