about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorUlrik Sverdrup <bluss@users.noreply.github.com>2016-03-05 18:09:14 +0100
committerUlrik Sverdrup <bluss@users.noreply.github.com>2016-03-05 18:11:52 +0100
commit4594f0f67aad77839d5a41353224fee186bfcda9 (patch)
tree0eb1684d1a6de19110ef4e92a9acdfee2883b629 /src/libstd/sys/unix/stack_overflow.rs
parentc97524bef9e59a80875110b402b3fc8c139d4d64 (diff)
downloadrust-4594f0f67aad77839d5a41353224fee186bfcda9.tar.gz
rust-4594f0f67aad77839d5a41353224fee186bfcda9.zip
Fix panic on string slicing error to truncate the string
The string may be arbitrarily long, but we want to limit the panic
message to a reasonable length. Truncate the string if it is too long
(simply to char boundary).

Also add details to the start <= end message. I think it's ok to flesh
out the code here, since it's in a cold function.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions