about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorokaneco <47607823+okaneco@users.noreply.github.com>2024-08-25 02:41:56 -0400
committerokaneco <47607823+okaneco@users.noreply.github.com>2024-09-20 20:56:07 -0400
commitb94c5a169b588b9d97c014e6dcef18a1acb1f715 (patch)
tree4e850b26126e12831a813157b3b2e47dc909db91 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parent8c2c9a9ef527edb453bcee638d34beb0e7b4616b (diff)
downloadrust-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