diff options
| author | bors <bors@rust-lang.org> | 2016-03-07 02:28:09 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2016-03-07 02:28:09 +0000 |
| commit | 6eb81a1f3bc27f2160048c09e3936486b4c9ef59 (patch) | |
| tree | 93a347caa2ad77a748f6d0675fa7a8398633777a /src/libstd/sys/unix/stack_overflow.rs | |
| parent | 998a6720b68bcb0fef67daa5d258ff2f8e5b99b8 (diff) | |
| parent | 4594f0f67aad77839d5a41353224fee186bfcda9 (diff) | |
| download | rust-6eb81a1f3bc27f2160048c09e3936486b4c9ef59.tar.gz rust-6eb81a1f3bc27f2160048c09e3936486b4c9ef59.zip | |
Auto merge of #32064 - bluss:str-slice-panic, r=alexcrichton
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. Fixes #32063
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
