diff options
| author | root <root@localhost> | 2014-08-23 12:30:08 +0200 |
|---|---|---|
| committer | root <root@localhost> | 2014-08-23 13:49:19 +0200 |
| commit | b3b7c2e97b8e34ebc2597c21653df4b2d7a37575 (patch) | |
| tree | 1353cdc9d2cc4cdfd2e523610c6acf0b4ed3e451 /src/rustllvm/RustWrapper.cpp | |
| parent | 58bb603ea74a388d7a4dafc0c78f214a46301505 (diff) | |
| download | rust-b3b7c2e97b8e34ebc2597c21653df4b2d7a37575.tar.gz rust-b3b7c2e97b8e34ebc2597c21653df4b2d7a37575.zip | |
core: Separate failure formatting in str methods slice, slice_to, slice_from
Use a separate inline-never function to format failure message for str::slice() errors. Using strcat's idea, this makes sure no formatting code from failure is inlined when str::slice() is inlined. The number of `unreachable` being inlined when usingi `.slice()` drops from 5 to just 1.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
