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.
This commit is contained in:
Michael Goulet 2024-09-21 15:18:56 -04:00 committed by GitHub
commit 3b430dfee0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

Diff content is not available