diff options
| author | Ulrik Sverdrup <bluss@users.noreply.github.com> | 2016-03-05 18:09:14 +0100 |
|---|---|---|
| committer | Ulrik Sverdrup <bluss@users.noreply.github.com> | 2016-03-05 18:11:52 +0100 |
| commit | 4594f0f67aad77839d5a41353224fee186bfcda9 (patch) | |
| tree | 0eb1684d1a6de19110ef4e92a9acdfee2883b629 /src/libstd/sys/unix/stack_overflow.rs | |
| parent | c97524bef9e59a80875110b402b3fc8c139d4d64 (diff) | |
| download | rust-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
