diff options
| author | okaneco <47607823+okaneco@users.noreply.github.com> | 2024-08-25 02:41:56 -0400 |
|---|---|---|
| committer | okaneco <47607823+okaneco@users.noreply.github.com> | 2024-09-20 20:56:07 -0400 |
| commit | b94c5a169b588b9d97c014e6dcef18a1acb1f715 (patch) | |
| tree | 4e850b26126e12831a813157b3b2e47dc909db91 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp | |
| parent | 8c2c9a9ef527edb453bcee638d34beb0e7b4616b (diff) | |
| download | rust-b94c5a169b588b9d97c014e6dcef18a1acb1f715.tar.gz rust-b94c5a169b588b9d97c014e6dcef18a1acb1f715.zip | |
Avoid re-validating UTF-8 in `FromUtf8Error::into_utf8_lossy`
Refactor `into_utf8_lossy` to copy valid UTF-8 bytes into the buffer, avoiding double validation of bytes. Add tests that mirror the `String::from_utf8_lossy` tests
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
