about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-09-21 15:18:56 -0400
committerGitHub <noreply@github.com>2024-09-21 15:18:56 -0400
commit493852ccd6747ccf1807d8e401f7285e1848c853 (patch)
tree091914731cd59f66882e22dbf32e6b0edcbc9b8d /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parentd72d44d8ed5d5e19a8bd7993a96a6f30ddeb1afe (diff)
parentb94c5a169b588b9d97c014e6dcef18a1acb1f715 (diff)
downloadrust-493852ccd6747ccf1807d8e401f7285e1848c853.tar.gz
rust-493852ccd6747ccf1807d8e401f7285e1848c853.zip
Rollup merge of #130408 - okaneco:into_lossy_refactor, r=Noratrieb
Avoid re-validating UTF-8 in `FromUtf8Error::into_utf8_lossy`

Part of the unstable feature `string_from_utf8_lossy_owned` - #129436

Refactor `FromUtf8Error::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